Package com.atlassian.jira.workflow.edit
Interface WorkflowStatuses
- All Known Implementing Classes:
WorkflowStatusesImpl
@Internal
public interface WorkflowStatuses
Provides methods to operate on workflow statuses (e.g. create, delete).
- Since:
- 7.4
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddStatusAndGlobalTransitionToWorkflow(Status status, String workflowName) Add a status and a global transition to that status to a workflow.addStatusToWorkflow(Status status, String workflowName) Add a status to a workflow.createAndAddStatusToWorkflow(boolean createGlobalTransition, String description, String name, String statusCategoryId, String workflowName) Create a status and add it to a workflow.getStatuses(String workflowName) removeStatus(String statusId, String workflowName) Remove the status represented by the supplied status from the named workflow.updateStatus(String description, String name, String statusCategoryId, String statusId, String workflowName) Update a status, setting its description, name, and status category.verifyStatusCanBeRemoved(@NotNull Status status, String workflowName) verifyStatusCanBeRemoved(String statusId, String workflowName)
-
Field Details
-
DEFAULT_ICON_URL
- See Also:
-
-
Method Details
-
createAndAddStatusToWorkflow
ServiceOutcome<Workflow> createAndAddStatusToWorkflow(boolean createGlobalTransition, String description, String name, String statusCategoryId, String workflowName) Create a status and add it to a workflow.- Parameters:
createGlobalTransition- Whether a global transition to the new status should also be created.description- The status's description.name- The status's name.statusCategoryId- The ID of the status category to use.workflowName- The name of the workflow to add the status to.- Returns:
- ServiceOutcome
The updated workflow.
-
addStatusAndGlobalTransitionToWorkflow
Add a status and a global transition to that status to a workflow. If the workflow is inactive it is modified directly, otherwise its draft is modified.- Parameters:
status- The status.workflowName- The workflow's name.- Returns:
- A
ServiceOutcomecontaining the new workflow step.
-
addStatusToWorkflow
Add a status to a workflow. If the workflow is inactive it is modified directly, otherwise its draft is modified.- Parameters:
status- The status.workflowName- The workflow's name.- Returns:
- A
ServiceOutcomecontaining the updated workflow.
-
removeStatus
Remove the status represented by the supplied status from the named workflow.- Parameters:
statusId-workflowName-- Returns:
- A
ServiceOutcomecontaining the updated workflow.
-
updateStatus
ServiceOutcome<Workflow> updateStatus(String description, String name, String statusCategoryId, String statusId, String workflowName) Update a status, setting its description, name, and status category.- Parameters:
description- The status's new description.name- The status's new name.statusCategoryId- The ID of the status's new category.statusId- The status's ID.workflowName- The name of the workflow to operate on.- Returns:
- The updated workflow.
-
verifyStatusCanBeRemoved
-
verifyStatusCanBeRemoved
-
getStatus
-
getStatuses
- Parameters:
workflowName-- Returns:
- Information about all statuses in the system or error response if user can not edit specified workflow.
-