isIssueContext

Description

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

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

See also

Peacock