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 | admGetAllPriorityObjectsFromScheme(prioritySchemeName) | Package | adm | Alias | | Pkg Usage | getAllPriorityObjectsFromScheme(prioritySchemeName) |
|
Description
Excerpt |
---|
|
Gets all the priorities from the given priority scheme. |
Returns the list of priorities (as JPriority structs) that exist in the given priority scheme.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
prioritySchemeName | string | Yes | The name of the priority scheme. |
|
Return Type
JPriority []
Returns the list of priorities.
Examples
Example 1
Returns all the priorities from scheme "Default priority scheme"
Code Block |
---|
|
return admGetAllPrioritiesFromScheme("Default priority scheme"); |
1|Highest|This problem will block progress.|https://psc-atopoloaga.atlassian.net/images/icons/priorities/highest.svg|#d04437|false|2|High|Serious problem that could block progress.|https://psc-atopoloaga.atlassian.net/images/icons/priorities/high.svg|#f15C75|false
Example 2
Returns all the names and descriptions of priorities from scheme "Default priority scheme"
Code Block |
---|
|
JPriority[] priorities = admGetAllPrioritiesObjectsFromScheme("Default priority scheme");
for (JPriority priority in priorities) {
string name = priority.name;
runnerLog("name = " + name);
string desc = priority.description;
runnerLog("description = " + desc);
} |
name = Highest description = This problem will block progress. name = High description = Serious problem that could block progress.
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 |
---|
|
We've encountered an issue exporting this macro. Please try exporting this page again later.