@Component public class DefaultWorkflowSchemeEditor extends Object implements DraftWorkflowSchemeEditor
Constructor and Description |
---|
DefaultWorkflowSchemeEditor(OrderFactory orderFactory) |
Modifier and Type | Method and Description |
---|---|
DraftWorkflowScheme |
assign(DraftWorkflowScheme workflowScheme,
Iterable<String> issueTypesToAssign,
String newWorkflow,
Project project)
Re-assignes the given project's issue types to the given workflow.
|
DraftWorkflowScheme |
delete(DraftWorkflowScheme workflowScheme,
String deleteWorkflow,
Project project)
Deletes the passed workflow from the passed workflow scheme.
|
@Autowired public DefaultWorkflowSchemeEditor(OrderFactory orderFactory)
public DraftWorkflowScheme assign(DraftWorkflowScheme workflowScheme, Iterable<String> issueTypesToAssign, String newWorkflow, Project project)
DraftWorkflowSchemeEditor
assign
in interface DraftWorkflowSchemeEditor
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 topublic DraftWorkflowScheme delete(DraftWorkflowScheme workflowScheme, String deleteWorkflow, Project project)
DraftWorkflowSchemeEditor
delete
in interface DraftWorkflowSchemeEditor
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.Copyright © 2002-2019 Atlassian. All Rights Reserved.