Class WorkflowMigrationServiceImpl
java.lang.Object
com.atlassian.greenhopper.workflow.WorkflowMigrationServiceImpl
- All Implemented Interfaces:
WorkflowMigrationService
@Service
public class WorkflowMigrationServiceImpl
extends Object
implements WorkflowMigrationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<com.atlassian.jira.task.TaskDescriptor<com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult>>doMigrate(long projectId, long workflowSchemeId) Attempts to migrate the specified project to the specified workflow scheme.
-
Constructor Details
-
WorkflowMigrationServiceImpl
public WorkflowMigrationServiceImpl()
-
-
Method Details
-
doMigrate
public io.atlassian.fugue.Option<com.atlassian.jira.task.TaskDescriptor<com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult>> doMigrate(long projectId, long workflowSchemeId) throws WorkflowMigrationException Description copied from interface:WorkflowMigrationServiceAttempts to migrate the specified project to the specified workflow scheme. If a project has no issues to migrate, the migration will be instant (re-association of project to new scheme). Otherwise, a long-running asynchronous task will be kicked off.- Specified by:
doMigratein interfaceWorkflowMigrationService- Parameters:
projectId- the ID of the projectworkflowSchemeId- the ID of the target workflow scheme- Returns:
- either a
TaskDescriptorto hold the status of the migration task, or nothing to signify that the migration was instant - Throws:
WorkflowMigrationException
-