Skip to end of banner
Go to start of banner

isIssueContext

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 9 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with katl-commons 3.0.

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

Syntax

isIssueContext()

Description

Verifies if the script is running in an issue context.

Parameters

none

Return type

boolean (true/false)

A "true" return value means that the script is running in an issue context and that the standard variables and custom fields are available for use.

Example

if(isIssueContext()){
    return usersInGroups({"jira-users"}) - reporter;
} else {
    return usersInGroups({"jira-users"}) - currentUser();
}

 

See also

 

  • No labels