@Internal
public interface WorkflowStatuses
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ICON_URL |
| Modifier and Type | Method and Description |
|---|---|
ServiceOutcome<Workflow> |
addStatusAndGlobalTransitionToWorkflow(Status status,
String workflowName)
Add a status and a global transition to that status to a workflow.
|
ServiceOutcome<Workflow> |
addStatusToWorkflow(Status status,
String workflowName)
Add a status to a workflow.
|
ServiceOutcome<Workflow> |
createAndAddStatusToWorkflow(boolean createGlobalTransition,
String description,
String name,
String statusCategoryId,
String workflowName)
Create a status and add it to a workflow.
|
ServiceOutcome<Status> |
getStatus(String statusId,
String workflowName) |
ServiceOutcome<Collection<Status>> |
getStatuses(String workflowName) |
ServiceOutcome<Workflow> |
removeStatus(String statusId,
String workflowName)
Remove the status represented by the supplied status from the named workflow.
|
ServiceOutcome<Workflow> |
updateStatus(String description,
String name,
String statusCategoryId,
String statusId,
String workflowName)
Update a status, setting its description, name, and status category.
|
ServiceOutcome<Pair<Workflow,Status>> |
verifyStatusCanBeRemoved(@NotNull Status status,
String workflowName) |
ServiceOutcome<Pair<Workflow,Status>> |
verifyStatusCanBeRemoved(String statusId,
String workflowName) |
static final String DEFAULT_ICON_URL
ServiceOutcome<Workflow> createAndAddStatusToWorkflow(boolean createGlobalTransition, String description, String name, String statusCategoryId, String workflowName)
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.ServiceOutcome<Workflow> addStatusAndGlobalTransitionToWorkflow(Status status, String workflowName)
status - The status.workflowName - The workflow's name.ServiceOutcome containing the new workflow step.ServiceOutcome<Workflow> addStatusToWorkflow(Status status, String workflowName)
status - The status.workflowName - The workflow's name.ServiceOutcome containing the updated workflow.ServiceOutcome<Workflow> removeStatus(String statusId, String workflowName)
statusId - workflowName - ServiceOutcome containing the updated workflow.ServiceOutcome<Workflow> updateStatus(String description, String name, String statusCategoryId, String statusId, String workflowName)
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.ServiceOutcome<Pair<Workflow,Status>> verifyStatusCanBeRemoved(String statusId, String workflowName)
ServiceOutcome<Pair<Workflow,Status>> verifyStatusCanBeRemoved(@NotNull @NotNull Status status, String workflowName)
ServiceOutcome<Status> getStatus(String statusId, String workflowName)
ServiceOutcome<Collection<Status>> getStatuses(String workflowName)
workflowName - Copyright © 2002-2020 Atlassian. All Rights Reserved.