public JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId) throws WorkflowException { return workflowManager.getWorkflow(projectId, issueTypeId); }
@Override public JiraWorkflow apply(String input) { return workflowManager.getWorkflow(input); } }));
public JiraWorkflow getWorkflowForType(final Long projectId, final String issueTypeId) throws WorkflowException { return workflowManager.getWorkflow(projectId, issueTypeId); }
public JiraWorkflow getWorkflowForType(final Long projectId, final String issueTypeId) throws WorkflowException { return workflowManager.getWorkflow(projectId, issueTypeId); }
JiraWorkflow getExistingWorkflowByProjectId(String issueTypeId, long projectId) throws WorkflowException { JiraWorkflow workflow = workflowManager.getWorkflow(projectId, issueTypeId); if (workflow == null) { throw new WorkflowException("Could not find workflow associated with project '" + projectId + "', issuetype " + issueTypeId); } return workflow; }
private JiraWorkflow getExistingWorkflow(String issueTypeId) throws WorkflowException { JiraWorkflow workflow = workflowManager.getWorkflow(projectId, issueTypeId); if (workflow == null) { throw new WorkflowException("Could not find workflow associated with project '" + projectId + "', issuetype " + issueTypeId); } return workflow; }
private JiraWorkflow getWorkflowForType(final Long projectId, final String issueTypeId) throws WorkflowException { return getWorkflowManager().getWorkflow(projectId, issueTypeId); }
private Collection<ActionDescriptor> getActionsForIssue(MutableIssue issue) { return workflowManager.getWorkflow(issue).getAllActions(); }
@Override public JiraWorkflow getWorkflow() { JiraWorkflow workflow = super.getWorkflow(); if (workflow == null && isNotBlank(newWorkflowName)) { workflow = workflowManager.getWorkflow(newWorkflowName); setWorkflow(workflow); } return workflow; }
/** 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; }
public JiraWorkflow getSubTaskTargetWorkflow(String subTaskTypeID) throws WorkflowException { return getWorkflowManager().getWorkflow(getTargetPid(), subTaskTypeID); }
ActionDescriptor getActionDescriptor(Issue issue, int actionId) { final JiraWorkflow workflow = workflowManager.getWorkflow(issue); if (workflow == null) { return null; } final WorkflowDescriptor descriptor = workflow.getDescriptor(); if (descriptor == null) { return null; } return descriptor.getAction(actionId); }
public boolean isParentWorkflowActive(JiraWorkflow workflow) { //not an draft workflow? Well you don't have a parent so your parent is active for the purposes // of this method. if(!workflow.isDraftWorkflow()) { return true; } JiraWorkflow parentWorkflow = workflowManager.getWorkflow(workflow.getName()); return parentWorkflow != null && parentWorkflow.isActive(); } }
public JiraWorkflow getWorkflow(final JiraServiceContext jiraServiceContext, final String name) { if (StringUtils.isEmpty(name)) { jiraServiceContext.getErrorCollection().addErrorMessage(getI18nBean().getText("admin.workflows.service.error.null.name")); return null; } return workflowManager.getWorkflow(name); }
@Override public ActionDescriptor get() { return workflowManager.getWorkflow(getIssue()).getDescriptor().getAction(actionId); } });
public boolean isParentWorkflowActive(JiraWorkflow workflow) { //not an draft workflow? Well you don't have a parent so your parent is active for the purposes // of this method. if(!workflow.isDraftWorkflow()) { return true; } JiraWorkflow parentWorkflow = workflowManager.getWorkflow(workflow.getName()); return parentWorkflow != null && parentWorkflow.isActive(); }
public ActionDescriptor getActionDescriptor(WorkflowTransitionKey workflowTransitionKey) { String workflowName = workflowTransitionKey.getWorkflowName(); String actionDescriptorId = workflowTransitionKey.getActionDescriptorId(); JiraWorkflow workflow = workflowManager.getWorkflow(workflowName); return workflow.getDescriptor().getAction(Integer.parseInt(actionDescriptorId)); }
/** * Returns <meta> attributes of the initial "create issue" workflow action. */ private Map getWorkflowMetaAttributes() throws WorkflowException { JiraWorkflow workflow = ComponentAccessor.getWorkflowManager().getWorkflow(getPid(), getIssuetype()); return workflow.getDescriptor().getInitialAction(1).getMetaAttributes(); }
public Status getDestinationStatus(final WorkflowTransitionKey workflowTransitionKey) { final ActionDescriptor actionDescriptor = getBulkWorkflowTransitionOperation().getActionDescriptor(workflowTransitionKey); final JiraWorkflow workflow = workflowManager.getWorkflow(workflowTransitionKey.getWorkflowName()); final int newStepId = actionDescriptor.getUnconditionalResult().getStep(); if (newStepId == JiraWorkflow.ACTION_ORIGIN_STEP_ID) { return getOriginStatus(workflowTransitionKey); } else { final StepDescriptor step = workflow.getDescriptor().getStep(newStepId); return workflow.getLinkedStatus(step); } }