Skip to end of banner
Go to start of banner

admGetAvailablePriorityObjectsForScheme

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Returns a list of priorities (as JPriority structures) available for adding to a given priority scheme.

Parameters

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

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

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

  • No labels