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?
Hi @Gaurav Dhuppar - This can be handled like this:
parent = {{issue.parent}}
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Simmo ,
Thanks for your response. Here is the screenshot of the rule.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.