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

admGetAvailablePriorityObjectsForScheme(prioritySchemeName)

Package

adm

Alias

Pkg Usage

getAvailablePriorityObjectsForScheme(prioritySchemeName)

Description

Excerpt
hiddentrue

Gets all the priorities available to be added to the priority scheme.

Returns a list of priorities (as JPriority structures) available for adding to a 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 the priority names available to be added.

Examples

Example 1

Returns all the priorities that can be added to the scheme

Code Block
languagejs
return admGetAvailablePriorityObjectsForScheme("New priority scheme");

Very Important|must be fixed|https://psc-atopoloaga.atlassian.net/iconH|#ff2320|false|10003|Not Important|doesn't matter|https://psc-atopoloaga.atlassian.net/nip|#008000|false

Example 2

Returns all the priorities that can be added to the scheme

Code Block
languagejs
JPriority[] availablePrioObjs = admGetAvailablePriorityObjectsForScheme("New priority scheme");
for (JPriority prio in availablePrioObjs) {
    runnerLog("status color for \" " + prio.name + "\" is " + prio.statusColor);
}

status color for " Very Important" is #ff2320 status color for " Not Important" is #008000

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "priority_scheme_admin_routine" and space = currentSpace ( )
labelsarray_routines
We've encountered an issue exporting this macro. Please try exporting this page again later.