@PublicApi
public interface PriorityManager
Priorityies| Modifier and Type | Method and Description |
|---|---|
Priority |
createPriority(String name,
String description,
String iconUrl,
String color)
Create a new priority.
|
void |
editPriority(Priority priority,
String name,
String description,
String iconUrl,
String color)
Edit an existing priority.
|
Priority |
getDefaultPriority()
Deprecated.
since v7.6. Use priority schemes
PrioritySchemeManager.getDefaultOption(IssueContext) |
List<Priority> |
getPriorities()
Returns all priorities.
|
Priority |
getPriority(String id)
Returns a priority.
|
void |
movePriorityDown(String id)
Move the resolution down in the order.
|
void |
movePriorityUp(String id)
Move the resolution up in the order.
|
void |
removePriority(String id,
String newPriorityId)
Removes a priority.
|
void |
setDefaultPriority(String id)
Deprecated.
since v7.6. Use priority schemes
PrioritySchemeManager.setDefaultOption(FieldConfig, String) |
Priority createPriority(String name, String description, String iconUrl, String color)
name - name of the priority. Cannot be blank or null. Must be unique.description - description of the priorityiconUrl - icon url of the prioritycolor - color for the priority.Priorityvoid editPriority(Priority priority, String name, String description, String iconUrl, String color)
priority - existing priority.name - name of the prioritydescription - description of the priorityiconUrl - icon Url of the prioritycolor - color of the priorityList<Priority> getPriorities()
movePriorityDown(String) or movePriorityUp(String)Priorityvoid removePriority(String id, String newPriorityId)
id - priority id to remove.newPriorityId - priority to use for all issues which have the priority which has been removed. Cannot be null.Priority getPriority(String id)
id - priority idPriority or null if no priority with the specified id could be found.@Deprecated void setDefaultPriority(String id)
PrioritySchemeManager.setDefaultOption(FieldConfig, String)id - priority id@Deprecated Priority getDefaultPriority()
PrioritySchemeManager.getDefaultOption(IssueContext)Priority or if none configured null.void movePriorityUp(String id)
id - id of the resolution.void movePriorityDown(String id)
id - id of the resolution.Copyright © 2002-2018 Atlassian. All Rights Reserved.