This function returns the parent issue of a given issue based on the issue hierarchy configured in Jira cloud.
The hierarchy includes:
-
Issues linked via the Parent Link field
-
Issues linked through Epic-Story relationships
-
Sub-tasks under standard issues
If the issue is a sub-task, its direct parent is returned. For other issue types, the function returns the issue directly above it in the configured hierarchy.
parent() #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
Considering that current issue is JWT-3, this expression returns the parent of this issue: [JWT-1] |
Output
This function returns an ISSUE list
Variant where you additionally define issues.
Duplicated issues are filtered from the output.
parent(issueList) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
Considering that expression [JWT-1, JWT-2] To achieve this the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
ISSUElist |
Any given issue list. |
Output
This function returns an ISSUE list
ariant where you define issue keys instead.
Duplicated issues are filtered from the output.
parent(issueKeys) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns parent issues of JWT-7 and JWT-13:
|
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
TEXT |
A text containing issue keys separated by commas. |
Output
This function returns an issue list
To return the issues just under an Epic, you might want to have a look into the issuesUnderEpic() function.
To return all issues under the same Epic, you might want to have a look into the siblingIssuesUnderEpic() function.
To return all issues under an issue within the issue hierarchy, you might want to have a look into the allIssuesUnder() function.