Get all linked issues of child Issue

jan.ambroz August 28, 2023

Hi there, 

I am trying to create automation that gets triggered when Epic is changed. I need to get all child issues of this Epic and update some fields and next step is to get all linked issues of each child issue from the Epic and make some updates in these linked issues too. 

I can get all child issues of Epic but get stuck getting all linked issues of each child issue. 

Is there a way to get these linked issues in Automation?

 

Thank you 

2 answers

1 accepted

2 votes
Answer accepted
David Blank
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2023

HI @jan.ambroz ,

I haven't found a way to go an additional level like that. What I have done, is make a change to the Child Issues of the Epic with one automation rule, and then built a second automation rule to update the linked issues when the children change.

You can exclude changes made by Users by using a User Condition and making sure it it is automation that triggers your second rule:

Screenshot 2023-08-28 at 5.04.22 PM.png

Note: There is a checkbox under the details section that you have to check on the second automation for it to work. 

Screenshot 2023-08-28 at 5.02.08 PM.png

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2023

Hi @jan.ambroz 

The answer depends upon how many linked issues you expect:

More than 100 issues total: try the multiple rule approach suggested by @David Blank 

Fewer than 100 issues...

  • Using JQL to find the children of the Epic, call Lookup Issues
  • Using a created variable, you iterate over the results of the lookup to get the list of linked issues, turning that into a comma-separated list of issue keys
  • Finally you can use that JQL to either branch to the issues for action, or call Lookup Issues with the new JQL, when you only need to summarize their information, report on them, etc.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events