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?
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 Regards
Chitra Nagdeo
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use cascading rules:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Harald Heinz ,
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.
Hope this helps!
Regards
Chitra Nagdeo
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.