In this automation rule the epic will be automatically closed as soon as all stories are done.
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
Next to the boolean condition click on Add → Selector → Issue selector
Next to the issue selector click on Add → Action → Transition issue
Choose Transition to status
Enable the rule by clicking on the Enable button →
No screencast available at the moment.