Use case
In this automation rule the epic will be automatically closed as soon as all stories are done.
⚒️ Configuration
Issue transitioned event
Create a new rule and name it appropriately.
Providing a description will help you to identify what the rule does but this step is optional.
Add a Trigger → Issue transitioned event
Boolean condition
Add the following parser expression:
count(issuesUnderEpic()) = count(filterByStatus(issuesUnderEpic(), "Done")) AND count(issuesUnderEpic()) != 0
This way the rule will only continue, if all issues under the current epic are in status Done.
To achieve this, the following functions are used:
Issue selector
Next to the boolean condition click on Add → Selector → Issue selector
Target issue(s)
Linked epic
Transition issue
Next to the issue selector click on Add → Action → Transition issue
Mode
Choose Transition to status
Status
Choose Done
Enable the rule by clicking on the Enable button
📤 Import the example
Import the JSON file below to get started in no time.