Hi,
I want to set up an automation to close down all the epics children and their subtasks. The part with the children works, but the level with the subtasks is still where I struggle.
Any ideas?
You could use cascading rules:
Hi @Harald Heinz ,
You should separate to 2 automation. The first one to close epic children, the second one to close sub-tasks. And don't forget to enable "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule." of the second automation.
Hope this helps!
Hey @Harald Heinz ,
Welcome to Atlassian Community Forum, My name is Chitra and I am part of Jira Cloud support team in Atlassian. I understand you want to close/complete child standard workitem and subtask workitem when the Epic is closed.
To achieve this you must create two Automation rule:
On second rule check the option "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."
The above steps will help you achieve the requirement, thank you and have a nice day!
Thanks and RegardsChitra Nagdeo
Hi @Harald Heinz -- Welcome to the Atlassian Community!
I recommend implementing this scenario with one single rule rather than chained rules. That approach will reduce the risks of rule errors, failures, or an Atlassian automation outage preventing the chained rule(s) from running. (My understanding is there is no guarantee after an outage that rules which were supposed to run by-events will actually run later.)
This approach can be done with one rule as long as there are 100 work items, or fewer, involved. To do this with one rule:
The part which gathers all of the child and grandchild work items is this:
{{#lookupIssues}}{{key}}{{#if(subtasks.size.gt(0))}},{{subtasks.key.join(",")}}{{/}}{{^last}},{{/}}{{/}}
The way that works is:
Kind regards,Bill
Thank you all, the mentioned checkbox made the difference as I already created a second automation. But: can somebody explain, how this checkbox works. I mean, how does the second automations rule dynamics work once this checkbox is used with regards to the first rule if it is not explicitly linked?
In Jira automation rules, the setting "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule" determines if a rule can be initiated by actions performed within other automation rules. If this option is checked, the rule can be triggered by actions in other rules. If unchecked, the rule will only be triggered by its defined trigger.
Regards
Chitra Nagdeo
@Bill Sheboy wow, this worked instantly. Thank you so much - happy to use an all-in-one automation
@Bill Sheboy I have a similar vice-versa use case where I need subtasks to update an epic. Do you know if this can be done in one JQL again by a smart value?:First Subtask status update should update and epic
Hi @Harald Heinz
It appears others already responded and you accepted their answers to that question.
It looks like you're new here. Sign in or register to get started.