How do I trigger linked issues of Linked issues by JIRA automation?

Deepika April 16, 2024

I have an automation that runs when a Parent ticket is updated with a Sprint value, all its linked issues also get updated with the same Sprint value

However, I want this to run for the linked issues within the linked issue as well and this is currently not happening

This is what it looks like

Parent issue-> Linked issue 1->Linked issue 2

I want the Sprint value for Linked Issue 2 to also change when the Parent issue is updated

Thanks in advance

3 answers

0 votes
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.
April 16, 2024

Hi @Deepika 

This is similar to the use case to update a Parent issue to the child and grandchild issues, and can be done with one rule.

However for your scenario, there is a risk of duplication between links and exceeding the branching limit of 100 issues.  If you still want to try this approach, it could be like this:

  1. the currently linked issues keys may be found by parsing the {{triggerIssue.issuelinks}} smart value
  2. action: lookup issues, using JQL and the keys found from above, find your second level of linked issues
  3. branch: on JQL, creating a combined key list from the first two items
  4. action: copy the field from the trigger issue

Kind regards,
Bill

0 votes
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 16, 2024

Hi @Deepika 

I think two rules would be the most secure way to do this:

  • Rule 1: Set Linked Issue 1's Sprint based on Parent
  • Rule 2: Set Linked Issue 2's Sprint based on Linked Issue 1

---

If you want Rule 2 to only activate if Linked Issue 1 was set due to the Parent, you could in a Condition to check for this.

For example, in Rule 2 you could...

  • Check if Linked Issue 1 and its Parent have the same Sprint value
  • Check if Linked Issue 1 has a unique identifier it can refer to, to clarify its Sprint was set automatically
    • EG. Rule 1 might have set a unique Label, or populated a Custom Field, to clarify this

---

Let us know your thoughts!

If you'd like more specific instructions on how to implement this, it'd be great to understand your current rule (if you've built one), and the exact relationship between Parent, Linked Issue 1, and Linked Issue 2 - eg. is it parent/child? Or linked issues? Etc

Ste

 

0 votes
C_ Derek Fields
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.
April 16, 2024

You can't next branches within branches, which is what you are trying to do. You probably need a second rule similar to the first that is also triggered by a change to the Sprint field. Instead of looking for children, you would branch on linked issues. You need to allow this rule to be triggered by another rule (a checkbox in the Rule Details section). This will allow the rule to cascade through the linked issues of the child and then all of the subsequent linked issues.

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