Class WorkflowMigrationMapping
java.lang.Object
com.atlassian.jira.workflow.migration.WorkflowMigrationMapping
The class is used during workflow migration for a project. It holds mappings between statuses on old workflow and
new workflow. As workflows are configurable per issue type of Enterprise Edition of JIRA, the status mappings are
held on per issue type basis.
This class also holds ids of issues that start the migration on the wrong workflow. For example, if a previous workflow migration failed, some issues have already been migrated. We need to keep track of these issues to ensure that they get migrated again.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIssueIdsOnWrongWorkflow(Collection<Long> issueIds) voidaddMapping(org.ofbiz.core.entity.GenericValue issueType, org.ofbiz.core.entity.GenericValue oldStatus, org.ofbiz.core.entity.GenericValue newStatus) getTargetStatus(Issue issue) booleanisIssueOnWrongWorkflow(Long issueId)
-
Constructor Details
-
WorkflowMigrationMapping
public WorkflowMigrationMapping()
-
-
Method Details
-
addMapping
public void addMapping(org.ofbiz.core.entity.GenericValue issueType, org.ofbiz.core.entity.GenericValue oldStatus, org.ofbiz.core.entity.GenericValue newStatus) -
addIssueIdsOnWrongWorkflow
-
isIssueOnWrongWorkflow
-
getTargetStatus
-