com.atlassian.jira.projectconfig.workflow
Class DefaultWorkflowSchemeEditor
java.lang.Object
com.atlassian.jira.projectconfig.workflow.DefaultWorkflowSchemeEditor
- All Implemented Interfaces:
- DraftWorkflowSchemeEditor
public class DefaultWorkflowSchemeEditor
- extends Object
- implements DraftWorkflowSchemeEditor
- Since:
- v5.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWorkflowSchemeEditor
public DefaultWorkflowSchemeEditor(ComparatorFactory comparatorFactory)
assign
public DraftWorkflowScheme assign(DraftWorkflowScheme workflowScheme,
Iterable<String> issueTypesToAssign,
String newWorkflow,
Project project)
- Description copied from interface:
DraftWorkflowSchemeEditor
- Re-assignes the given project's issue types to the given workflow.
Possibly re-formats the workflow mapping so that the new workflow is treated as the default one.
- Specified by:
assign
in interface DraftWorkflowSchemeEditor
- Parameters:
workflowScheme
- the scheme we want to changeissueTypesToAssign
- issue types that the new workflow will be assigned tonewWorkflow
- workflow to assign to the issue typesproject
- JIRA project that the scheme belongs to
- Returns:
- the new workflow scheme.
delete
public DraftWorkflowScheme delete(DraftWorkflowScheme workflowScheme,
String deleteWorkflow,
Project project)
- Description copied from interface:
DraftWorkflowSchemeEditor
- Deletes the passed workflow from the passed workflow scheme.
- Specified by:
delete
in interface DraftWorkflowSchemeEditor
- Parameters:
workflowScheme
- currently active workflow schemedeleteWorkflow
- the workflow to delete.project
- the project we are doing the operation for. This defines what issue types need to be mapped.
- Returns:
- the new workflow scheme.
Copyright © 2002-2013 Atlassian. All Rights Reserved.