Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

admGetAllPriorityObjectsFromScheme(prioritySchemeName)

Package

adm

Alias

Pkg Usage

getAllPriorityObjectsFromScheme(prioritySchemeName)

Description

Excerpt
hiddentrue
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
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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
languagejs
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
languagejs
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)
showLabelsfalse
max25
showSpacefalse
cqllabel = "priority_scheme_admin_routine" and space = currentSpace ( )
labelsarray_routines