Use case
Avoid all the manual work by automatically closing stories when the epic is completed.
⚒️ 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 boolean expression:
Bash
%{trigger.issue.status} = "Done"
Issue selector
Next to the JQL condition click on Add → Selector → Issue selector.
Target issue(s)
Select Issues under epic/ stories
Boolean condition
Next to the Issue selector click on Add → Condition → Boolean condition
Add the following expression:
Bash
%{selector.issue.status} != "Done"
Transition issue
Next to the JQL condition 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.