---
title: "Related Issues Status Condition"
canonical: "https://support.appfire.com/space/JMWE/461701559/Related%20Issues%20Status%20Condition"
format: markdown
---
> Macro (aura-html)

When you add this condition to a transition, the add-on checks the **Status** of the issue's related issues. Based on the option selected under "[Related Issues Status Condition#Mode](#RelatedIssuesStatusCondition-Mode)" if the related issues satisfy the condition then the transition will be available to the user. If not, the transition will be hidden.

> ⚠️ The list of statuses that is displayed under the `Statuses` field has all the statuses across different workflows. This is because the workflow of an issue and that of its related issues can be different.

<span style="color: #000000">You can further customize the condition using the following options:</span>

## Which Issues

Select the issues to check the constraints on. They can be:

- **Linked issues:** Select issue(s) linked to the current issue through any link type or a specific link type such as `blocks`, `is cloned by`, etc.
- **Sub-tasks of the current issue: **Select this option to operate on the sub-tasks of the current issue
- **Parent issue of the current sub-task:** Select this option to operate on the parent of the current issue
- **Issues that belong to the current Epic:** Select this option to operate on the issues that belong to the current Epic
- **Epic of the current issue: **Select this option to operate on the Epic of the current issue
- **Child issues of the current issue in the Portfolio hierarchy:** Select this option to operate on the child issues of the current issue in the Portfolio hierarchy
- **Parent issue of the current issue in the Portfolio hierarchy:** Select this option to operate on the parent issue of the current issue in the Portfolio hierarchy
- **Issues returned by a Groovy script: ** Input a Groovy script that returns either a single [Issue object](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461537734), or a Collection of [Issue objects](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461537734), or a String representing the key of an issue, or a Collection of Strings each representing an issue key. For example:
  - `"TEST-1"`
  - `["TEST-1","TEST-2"]`
  - `ComponentAccessor.issueManager.getIssueObject("TEST-1")`
  - `[ComponentAccessor.issueManager.getIssueObject("TEST-1"),ComponentAccessor.issueManager.getIssueObject("TEST-2")]`
  - `issue.parentObject`
  - `issue.getLinkedIssues()`
- **Issues returned by a JQL search**:  Input a JQL search expression, including an optional Groovy Template markup. For example:
  - `project = TEST` returns issues of the project with the key TEST
  - `project = ${issue.get("project").key} and assignee = ${`[currentUser.name](http://currentUser.name)`}` returns issues of the project the current issue belongs to and assigned to the current user
  - To operate on issues of a project with key `TEST` and issue type name same as the value in a text field
    

> ⚠️ - Note that the `<% if %>` block is necessary to avoid an invalid JQL query when the Single-line text field is empty. In that case, the template will return a valid JQL query that returns no issue (issuekey=INVALID-1). This is in general applicable to JQL operating on select type fields with pre-determined values like Affects Version/s, Checkboxes etc.
> ⚠️ - The maximum number of issues returned by a valid JQL is limited to 1000.

## Mode

- <span style="color: #172b4d">**All issues must be in the selected statuses below:**</span><span style="color: #172b4d"> All the related issues must be in one of the status(es) selected under "Statuses"</span>
- **At least one issue must be in one of the selected statuses below: **<span style="color: #172b4d">At least one related issue must be in one of the status(es) selected under "Statuses"</span>
- **No issue must be in one of the selected statuses below:** No issue must in one of the <span style="color: #172b4d">status(es) selected under "Statuses"</span>
- **At least one issue must *****not***<span style="color: #172b4d">** be in one of the selected statuses below:**</span><span style="color: #172b4d"> At least one issue </span><span style="color: #172b4d">*must not be*</span><span style="color: #172b4d"> in one of the statuses selected under "Statuses"</span>