public JiraWorkflow getWorkflowFromScheme(WorkflowScheme scheme, String issueTypeId) { return getWorkflow(scheme.getActualWorkflow(issueTypeId)); }
/** Gets non-null target workflow for an issue type in the current project. */ JiraWorkflow getTargetWorkflow(String issueTypeId) throws WorkflowException { String workflowName = targetScheme.getActualWorkflow(issueTypeId); JiraWorkflow workflow = workflowManager.getWorkflow(workflowName); if (workflow == null) { throw new WorkflowException("Could not find workflow associated with issuetype " + issueTypeId); } return workflow; }
/** Gets non-null target workflow for an issue type in the current project. */ private JiraWorkflow getTargetWorkflow(String issueTypeId) throws WorkflowException { String workflowName = targetScheme.getActualWorkflow(issueTypeId); JiraWorkflow workflow = workflowManager.getWorkflow(workflowName); if (workflow == null) { throw new WorkflowException("Could not find workflow associated with issuetype " + issueTypeId); } return workflow; }