Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I want to search for more parent issues in JIRA Automation

koutarou ishibashi September 20, 2023

Please forgive me for not being good at English

In jira automation, when searching for a parent issue, we use Key = {{issue.parent.key}} to search.
So, what smart values should you use when searching for a parent's parent issue?

Also, when searching for child issues, we search with "Parent Link" = {{issue.key}}, but what kind of smart value should we use when searching for child issues of child issues?

1 answer

1 accepted

1 vote
Answer accepted
Peter_DevSamurai
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 21, 2023

- search for a parent's parent issue in Jira automation, you can use the following smart value: {{issue.parent.parent.key}}
This smart value will return the key of the parent issue of the current issue's parent issue.

To search for child issues of child issues, you can use the following smart value: {{issue.subtasks.subtasks.key}}
This smart value will return a list of keys of the child issues of the current issue's child issues.
Here are some examples of how to use these smart values in Jira automation:
- Search for the parent's parent issue of the current issue and transition it to the "Done" status. transitionIssue({id: {{issue.parent.parent.id}}, transition: "Done"})
- Search for all child issues of child issues of the current issue and assign them to the user with the username "john.doe". assignIssues(issueKeys: {{issue.subtasks.subtasks.key}}, assigneeUsername: "john.doe")

Note: You can also use the Lookup issues component in Jira automation to search for parent's parent issues and child issues of child issues. However, the smart values shown above are more efficient and easier to use.

koutarou ishibashi September 22, 2023

Thank you for your answer.
{{issue.parent.parent.key}} was available, but {{issue.subtasks.subtasks.key}} was not.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events