@PublicApi
public interface PriorityManager
Priority
iesModifier 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.
|
java.util.stream.Stream<Priority> |
findPriorities(String substring,
Set<Long> projectIds)
Returns priorities whose names start with or fully match given substring.
|
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.Priority
void 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)
Priority
void 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.@ExperimentalApi java.util.stream.Stream<Priority> findPriorities(@Nonnull String substring, @Nonnull Set<Long> projectIds)
substring
- the string that priority names will be matched withprojectIds
- the set of project ids to filter prioritiesCopyright © 2002-2023 Atlassian. All Rights Reserved.