Class WorkflowMigrationMapping

java.lang.Object
com.atlassian.jira.workflow.migration.WorkflowMigrationMapping

public class WorkflowMigrationMapping extends Object
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 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

      public void addIssueIdsOnWrongWorkflow(Collection<Long> issueIds)
    • isIssueOnWrongWorkflow

      public boolean isIssueOnWrongWorkflow(Long issueId)
    • getTargetStatus

      public Status getTargetStatus(Issue issue)