Skip to end of banner
Go to start of banner

admGetAllPriorityObjectsFromScheme

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Description

Returns the list of priorities (as JPriority structs) that exist in the given priority scheme.

Parameters

Return Type

JPriority []

Returns the list of priorities.

Examples

Example 1

Returns all the priorities from scheme "Default priority scheme"

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"

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

  • No labels