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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,730
Community Members
 
Community Events
176
Community Groups

Can I increase the Loop Detection sevice limit in JIRA automation from 10?

I have an requirement where I need to perform automation on dates where dates for linked subtasks should change if any change occurs in date of one subtask. I want to run it until the condition got failed for linked tasks as I have 20 subtasks. How can this be acheived?

1 answer

1 vote
Mark Segall Community Leader Mar 09, 2022

Hi @Gaurav Dhuppar - This can be handled like this:

  • TRIGGER: Field Value Changed
  • CONDITIONS:
    • <Your Date Field(s)>
    • Issue Type = Subtask
  • BRANCH: JQL This will get you into the other subtasks
    • parent = {{issue.parent}}
    • CONDITION(S) If applicable
    • ACTION: Edit Issue <Your Date Field(s)> (Set to copy from trigger issue)

Hi @Mark Segall ,

 

Thanks for your response. This is what I have done but I have 20 subtasks within the task and when I am trying to update the dates for all the linked subtasks, after 10 JIRA automation is throwing loop detected. Hence I wanted to check if we can increase the value for Loop Detection service Limit?

Mark Segall Community Leader Mar 09, 2022

Ahh... I think the loop detection is occurring because the issue is hitting itself with the JQL.  You probably want to adjust the branch query to this so that the trigger issue is not included in the branch set:

parent = {{issue.parent}} AND KEY != {{issue}}

 See if that fixes the problem.

Like Bill Sheboy likes this
Simmo Atlassian Team Mar 09, 2022

Hi @Gaurav Dhuppar,

The loop detection limit cannot be changed. As @Mark Segall pointed out, if you're hitting that then it is a sign that you need to restructure your rule. 

Can you provide a screenshot of how you have configured your rule?

Cheers,

Simeon.

Hi @Simmo ,

 

Thanks for your response. Here is the screenshot of the rule.

Automation_rule.PNG

 

The reason I have checked the box of check to allow other rule action to trigger this rule is because I want to update dates for all the linked subtasks. Now, if subtask count is less than 10, then this rule is working absolutely fine. But for more than 10 it is showing as loop. Can we insert some delay in the rule or break it in between and restart it again?

 

Thanks,

Gaurav Dhuppar

Simmo Atlassian Team Mar 09, 2022

Hey @Gaurav Dhuppar

Is there any chance you can raise a support ticket? These things are really hard to debug without seeing what is going on and thats lots of screenshots.

But to answer your question, we need to have a look at what issues are triggering this rule and redesign your rule. The loop is happening because the rule is triggering itself. Perhaps a check before editing might help here as well. No point editing the field if the value already matches what it is set to.

Hi @Simmo ,

 

I have raised support ticket JST-741086, but the field is getting edited because the value is getting changed as it is dependent on other subtasks.

 

Thanks,

Gaurav Dhuppar

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events