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

admGetAllPrioritySchemesObjects()

Package

adm

Alias

Pkg Usage

getAllPrioritySchemesObjects()

Description

Excerpt
hiddentrue

Gets all the priority schemes.

Returns the list of priority scheme (as JPriorityScheme structures) that exist in the Jira environment

Return Type

JPriorityScheme []

Returns the list of the priority schemes.

Examples

Example 1

Returns all the priorities schemes

Code Block
languagejs
return admGetAllPrioritySchemesObjects();

10141|Default priority scheme|This is the default scheme used by all new and unassigned projects|Highest|High|Medium|Low|Lowest|10141|New priority scheme|This is a new scheme|High|Medium|Low

Example 2

Print the priorities property from all the priorities schemes

Code Block
languagejs
JPriorityScheme[] schObjects = admGetAllPrioritySchemesObjects();
for (JPriorityScheme scheme in schObjects) {
    string[] schemeName = scheme.name;
    string[] prios = scheme.priorities;
    runnerLog("schemeName \"" + schemeName + "\" has the next priorities: " + prios);
}

schemeName "Default priority scheme" has the next priorities: Highest|High|Medium|Low|Lowest|not high at all|towelie schemeName "New priority scheme" has the next priorities: High|Medium|Low

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.