Class WorkflowHelper
java.lang.Object
com.atlassian.greenhopper.web.rapid.workflow.WorkflowHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowHelper(RapidViewQueryService rapidViewQueryService, WorkflowService workflowService, WorkflowConstantsService workflowConstantsService, PermissionService permissionService, I18nFactoryService i18nFactoryService, SimplifiedWorkflowService simplifiedWorkflowService) -
Method Summary
Modifier and TypeMethodDescriptionServiceOutcome<com.atlassian.jira.issue.status.Status> addStatusToGreenHopperSimplifiedWorkflow(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, String statusName, Long statusCategoryId) Will attempt to get or create the status named and add it to the GreenHopper Simplified Workflow that is backing this Rapid View.checkForSimplifiedWorkflowNamedAfterProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow, com.atlassian.jira.project.Project>> getGreenHopperSimplifiedWorkflow(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow, com.atlassian.jira.project.Project>> getPotentialWorkflowForConversion(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) ServiceOutcome<com.atlassian.jira.issue.status.Status> getStatusById(String statusId) ServiceOutcome<List<com.atlassian.jira.issue.status.Status>> getStatusesByIds(List<String> statusIds) ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.jira.user.ApplicationUser user, String workflowName) isRapidViewUsingGreenHopperSimplifiedWorkflow(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) validateModifyWorkflow(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project, String errorMsgKey)
-
Constructor Details
-
WorkflowHelper
public WorkflowHelper(RapidViewQueryService rapidViewQueryService, WorkflowService workflowService, WorkflowConstantsService workflowConstantsService, PermissionService permissionService, I18nFactoryService i18nFactoryService, SimplifiedWorkflowService simplifiedWorkflowService)
-
-
Method Details
-
isRapidViewUsingGreenHopperSimplifiedWorkflow
public WorkflowHelper.SimplifiedWorkflowResult isRapidViewUsingGreenHopperSimplifiedWorkflow(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) -
getGreenHopperSimplifiedWorkflow
public ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow,com.atlassian.jira.project.Project>> getGreenHopperSimplifiedWorkflow(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) -
getPotentialWorkflowForConversion
public ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow,com.atlassian.jira.project.Project>> getPotentialWorkflowForConversion(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) -
getWorkflow
public ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.jira.user.ApplicationUser user, String workflowName) -
getStatusById
-
getStatusesByIds
public ServiceOutcome<List<com.atlassian.jira.issue.status.Status>> getStatusesByIds(List<String> statusIds) -
checkForSimplifiedWorkflowNamedAfterProject
public ServiceResult checkForSimplifiedWorkflowNamedAfterProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) -
addStatusToGreenHopperSimplifiedWorkflow
public ServiceOutcome<com.atlassian.jira.issue.status.Status> addStatusToGreenHopperSimplifiedWorkflow(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, String statusName, Long statusCategoryId) Will attempt to get or create the status named and add it to the GreenHopper Simplified Workflow that is backing this Rapid View. Does not alter the Rapid View's column configuration.- Parameters:
user- the userrapidView- the rapid viewstatusName- the name of the status- Returns:
- the result
- See Also:
-
validateModifyWorkflow
public ServiceResult validateModifyWorkflow(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project, String errorMsgKey)
-