Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | admGetAllPrioritySchemesObjects() | Package | adm | Alias | | Pkg Usage | getAllPrioritySchemesObjects() | |
Description
Excerpt |
---|
|
Gets all the priority schemes. |
Returns the list of priority scheme (as JPriorityScheme structures) that exist in the Jira environment
Return Type
JPriorityScheme []
Returns the list of the priority schemes.
Examples
Example 1
Returns all the priorities schemes
Code Block |
---|
|
return admGetAllPrioritySchemesObjects(); |
10141|Default priority scheme|This is the default scheme used by all new and unassigned projects|Highest|High|Medium|Low|Lowest|10141|New priority scheme|This is a new scheme|High|Medium|Low
Example 2
Print the priorities property from all the priorities schemes
Code Block |
---|
|
JPriorityScheme[] schObjects = admGetAllPrioritySchemesObjects();
for (JPriorityScheme scheme in schObjects) {
string[] schemeName = scheme.name;
string[] prios = scheme.priorities;
runnerLog("schemeName \"" + schemeName + "\" has the next priorities: " + prios);
} |
schemeName "Default priority scheme" has the next priorities: Highest|High|Medium|Low|Lowest|not high at all|towelie schemeName "New priority scheme" has the next priorities: High|Medium|Low
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "priority_scheme_admin_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|