Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available since katl-commons starting with SIL Engine™ 3.1.9.

Syntax

...

getWorkflowStatusIds(workflowName [, isDraft])

Description

...

Excerpt

Retrieves an unique list of statuses (ids) for a given workflow.

Parameters

...


Parameter name

Type

Required

Description

workflow name

String

Yes

the name

Name of the given workflow.

isDraftBooleanNo
flag
Flag for specifying whether we should consider the draft or not. If not specified, it defaults to "false".

Return type

...

string []

The return value is an array of strings, containing the ids for the existing statuses in the workflow.

Example

...


Code Block
string key = "TEST-19";
return getWorkflowStatusIds(key.workflow);

Result:  1|3|4|5|6


Example 2

...


Code Block
string key = "TEST-19";
return getWorkflowStatusIds(key.workflow, false);

Result:  1|3|4|5|6


Example 3

...

Setting the second parameter to "true", if we do have a draft in which there is where another status is added, the result will contain this status also.

Code Block
string key = "TEST-19";
return getWorkflowStatusIds(key.workflow, true);

Result:  1|3|4|5|6|10100


See

...

also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "jira_transition_routine"
labelsjira_transition_routine