Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | admGetPrioritySchemeObject(projectKey) | Package | adm | Alias | | Pkg Usage | getPrioritySchemeObject(projectKey) | |
Description
Excerpt |
---|
|
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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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 |
---|
|
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 |
---|
|
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) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "priority_scheme_admin_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|