Skip to end of metadata
Go to start of metadata

Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.

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