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

admGetPrioritySchemeObject(projectKey)

Package

adm

Alias

Pkg Usage

getPrioritySchemeObject(projectKey)

Description

Excerpt
hiddentrue
Returns the priority scheme for the given project key.

Returns the priority scheme (as a JPriorityScheme structure) for the given project key.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

projectKey

string

Yes

The project key.

Return Type

JPriorityScheme

Returns the priority scheme name.

Examples

Example 1

Returns the priority scheme (full object) for project "TEST"

Code Block
languagejs
return admGetPrioritySchemeObject("TEST");

prioSchemeObjForProject = 10143|New priority scheme|new desc updated at 2024-08-06 13:47:05|Highest|Medium|Low|DEMO|ITSD|TEST

Example 2

Prints the priority scheme id and description for project "TEST"

Code Block
languagejs
JPriorityScheme prioSchemeObjForProject = admGetPrioritySchemeObject("TEST");
runnerLog("The description of priority with id " + prioSchemeObjForProject.id + " is " + prioSchemeObjForProject.description);

The description of priority with id 10143 is new desc updated at 2024-08-06 13:47:05

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "priority_scheme_admin_routine" and space = currentSpace ( )
labelsarray_routines