Versions Compared

Key

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

This routine is available starting with katl-commons 3.0.

This routine is available for Jira server and cloud deployment options.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

isIssueContext()

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Verifies if the script is running in an issue context.

Parameters

none

Return type

boolean (true/false)Verifies if the script is running in an Contexts.

Return Type

Boolean

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

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

...

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

issue_

...

routine" and space = currentSpace ( )
labels

...

array_routines