@PublicApi
public interface StatusManager
Status
es.Modifier and Type | Method and Description |
---|---|
Status |
createStatus(String name,
String description,
String iconUrl)
Creates a new status.
|
Status |
createStatus(String name,
String description,
String iconUrl,
StatusCategory statusCategory)
Creates a new status.
|
void |
editStatus(Status status,
String name,
String description,
String iconUrl)
Edit an existing status.
|
void |
editStatus(Status status,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
Edit an existing status.
|
Status |
getStatus(String id)
Get a status by id.
|
Collection<Status> |
getStatuses() |
void |
moveStatusDown(String id)
Move the status down in the order.
|
void |
moveStatusUp(String id)
Move the status up in the order.
|
void |
removeStatus(String id)
Removes a status.
|
Status createStatus(String name, String description, String iconUrl, StatusCategory statusCategory)
name
- name of the status. Cannot be blank or null and has to be unique.description
- description of the status.iconUrl
- icon url for this status. Cannot be blank or null.statusCategory
- status category of the status. Cannot be nullStatus
.Status createStatus(String name, String description, String iconUrl)
name
- name of the status. Cannot be blank or null and has to be unique.description
- description of the status.iconUrl
- icon url for this status. Cannot be blank or null.Status
.void editStatus(Status status, String name, String description, String iconUrl, StatusCategory statusCategory)
status
- status to edit.name
- new name. Has to be unique.description
- new descriptioniconUrl
- new icon urlstatusCategory
- status category of the status. Cannot be nullvoid editStatus(Status status, String name, String description, String iconUrl)
status
- status to edit.name
- new name. Has to be unique.description
- new descriptioniconUrl
- new icon urlCollection<Status> getStatuses()
Status
esvoid removeStatus(String id)
id
- status idIllegalStateException
- if this status is associated with any workflow.IllegalArgumentException
- if a status with the given id does not exist.Status getStatus(String id)
id
- status idStatus
, or null if no status with this id exists.void moveStatusUp(String id)
id
- id of the status.IllegalArgumentException
- if a status with the given id does not exist.void moveStatusDown(String id)
id
- id of the status.IllegalArgumentException
- if a status with the given id does not exist.Copyright © 2002-2022 Atlassian. All Rights Reserved.