Interface WorkflowMigrationService
- All Known Implementing Classes:
WorkflowMigrationServiceImpl
public interface WorkflowMigrationService
-
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.
-
Method Details
-
doMigrate
io.atlassian.fugue.Option<com.atlassian.jira.task.TaskDescriptor<com.atlassian.jira.web.action.admin.workflow.WorkflowMigrationResult>> doMigrate(long projectId, long workflowSchemeId) throws WorkflowMigrationException Attempts 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.- 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:
com.atlassian.greenhopper.workflow.migration.WorkflowMigrationException- if anything goes wrong underneath (mostly GenericEntityExceptions)WorkflowMigrationException
-