How to create loops in a Jira automation
Asked by Alanis_ Hans:

I need help with the following issue.

This is my automation:

1. Trigger: Value Changes for Start date, Duration
2. Then: Edit issue field Due Date (=Issue Start Date + Duration)
3. And: Re-Fetch issue Data
   1. Branch For Linked Issues, Types: Linked issue cannot start until this issue finishes
   2. Then: Edit issue field Start Date (=Linked issue DueDate+1day)
   3. And: Re-fetch issue data
   4. And: Edit Issue fields Due Date (=Issue Start Date + Duration)
   5. And: Re-fetch issue data

This is the problem:

1. I manually update the Start date of HA11-2
2. Then the Due date of HA11-2 get's updated. *This is OK*
3. Then the Start date of HA11-3 gets updated. *This is OK*
4. Then the Due date of HA11-3 gets updated. *This is OK*

Then it stops, but the rest of the issues are linked as well. I am expecting all linked issues to continue updating.

<br />

![2024-09-04 20_13_28-List - HA11 - Jira and 7 more pages - Work - Microsoft? Edge.png](/t5/image/serverpage/image-id/345661i80673D14FF780D63/image-dimensions/459x237?v=v2 "2024-09-04 20_13_28-List - HA11 - Jira and 7 more pages - Work - Microsoft? Edge.png")


Answers:
author: Trudy Claspill
body: Hello [@Alanis_ Hans](/t5/user/viewprofilepage/user-id/5454426)

How are the issues linked? Is HA11-4 linked to HA11-2 or to HA11-3?

The rule you have written will change only the issues that are directly linked to the trigger issue - HA11-2.

If your issues are linked in a chain, then on the Rule Details page you need to check this box:

![Screenshot 2024-09-04 at 7.11.26?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/345674i9374EA4AA7E58AC0/image-size/large?v=v2&px=999 "Screenshot 2024-09-04 at 7.11.26?PM.png")

Then the update of HA11-3 will cause the rule to be triggered again for HA11-3 and update the issues linked to HA11-3, and so on through the chain of linked issues.

**However** this sort of trigger-itself action is limited to 10 such executions. If you have more than 10 issues in the chain additional actions have to be taken to address that.

comments: author: Alanis_ Hans
body: Thanks [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) . Selecting that checkbox fixed the issue.  
Now, to answer your questions.  
Yes HA11-5 is linked to HA11-4   
HA11-4 is linked to HA11-3   
HA11-3 is linked to HA11-2....and so on.  

I didn't know this type of trigger is limited to 10 execution. This will be a problem for me as I have 180 issues in my project, all linked as I mentioned above.  
What I want to do is that if I change the Start Date of any of the issues, I want the chain of linked issues to be updated.  

Is there a different way to achieve this?


author: Jack Brickey
body: What does the audit log show? Could I see the screenshot of HA11-2 detailed issue view?

comments: author: Alanis_ Hans
body: [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) , Thanks for your response. I saw [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) 's comment and his suggestion fixed my problem. But now I have the other issue with needing this to execute to all my 180 issues.


Tags: cloud

jira-work-management-cloud