getAvailableTransitions

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 !

Availability

This routine is available starting with katl-commons 2.5.13 / 2.6.5.

This routine is available for Jira server and cloud deployment options.

Syntax

getAvailableTransitions(issueKey)

Description

Retrieves all available transitions for the current user from the given issue state.

Parameters

Parameter name

Type

Required

Description

issue key

String

Yes

Key of the selected issue.

Return type

string []

The return value is an array of strings, containing the names of the available transitions for the current user from the given issue state.

Example

Issue DEMO-1 has status Open and is assigned to test user. Currently logged in user is admin. Start Progress transition is restricted only to assignee, therefore it will be omitted.

return getAvailableTransitions("DEMO-1");

Result: Resolve Issue|Close Issue.

See also