com.atlassian.jira.projectconfig.workflow
Interface DraftWorkflowSchemeEditor

All Known Implementing Classes:
DefaultWorkflowSchemeEditor

public interface DraftWorkflowSchemeEditor

Since:
v5.2

Method Summary
 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.
 

Method Detail

assign

DraftWorkflowScheme assign(DraftWorkflowScheme workflowScheme,
                           Iterable<String> issueTypesToAssign,
                           String newWorkflow,
                           Project project)
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.

Parameters:
workflowScheme - the scheme we want to change
issueTypesToAssign - issue types that the new workflow will be assigned to
newWorkflow - workflow to assign to the issue types
project - JIRA project that the scheme belongs to
Returns:
the new workflow scheme.

delete

DraftWorkflowScheme delete(DraftWorkflowScheme workflowScheme,
                           String deleteWorkflow,
                           Project project)
Deletes the passed workflow from the passed workflow scheme.

Parameters:
workflowScheme - currently active workflow scheme
deleteWorkflow - 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.