Current issue
This function returns the parent issue of a given issue according to Advanced Roadmaps hierarchy, i.e., the issue which is immediately above in the hierarchy. In the case that the given issue is a sub-task, its parent issue will be returned.
Advanced Roadmaps hierarchy includes:
-
Issues linked by Parent Link custom field.
-
Issues linked by Epic-Story link.
-
Sub-tasks in the lowest level of the hierarchy. Sub-tasks under issues in intermediate levels of the hierarchy are not considered to belong to Advanced Roadmaps hierarchy.
Example:
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
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 |
|---|---|---|
|
|
issue list |
Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or issuesUnderEpic()). |
Output
This function returns an issue list
Issue keys
Variant 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 comma separated list of issue keys. |
Output
This function returns an issue list
To return the issues just under an issue within the Advanced Roadmaps hierarchy, you might want to have a look into the issuesUnder() function.
To return all issues under an issue within the Advanced Roadmaps hierarchy, you might want to have a look into the allIssuesUnder() function.
To return all issues having the same parent within the Advanced Roadmaps hierarchy, you might want to have a look into the siblingIssues() function.
To return the parent of an issue within the Advanced Roadmaps hierarchy, you might want to have a look into the parent() function.
To return all issues above an issue within the Advanced Roadmaps hierarchy, you might want to have a look into the issuesAbove() function.
📚 Use cases and examples
| Use case | Automated action | Parser functions |
|---|---|---|
| Inherit value from parent in Advanced Roadmaps hierarchy |