How can we define a rule that prevents a "Story" from being closed while there are still Sub-tasks that have a state != from closed. The same for issue type "Bug" and "Task"
Regarding to Epic: How to prevent an Epic from being put to epic state "done" and JIRA state "closed" as long as the child Stories + Sub-tasks are not closed.