---
title: "isIssueContext"
canonical: "https://support.appfire.com/space/PSJ/15485231/isIssueContext"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | isIssueContext() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Verifies if the script is running in an issue context.

Verifies if the script is running in an [Contexts](#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](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15485601) are available for use.

## Example

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

## See also

> Macro (contentbylabel)