I want to create a Jira automation rule to prevent a sub-task from being closed until all of its linked issues are in the Done/Closed status.
Requirement:
- When a user transitions a sub-task to Done/Closed, the automation should check all linked issues.
- If any linked issue is not in the 'Done' status category, the sub-task should not be allowed to close (or should be automatically transitioned back to its previous status with an appropriate comment).
- The sub-task should only be allowed to close once all linked issues are in the Done/Closed status.
Could you please advise on the best way to configure this using Jira Automation? If this is not possible with automation alone, please let us know whether a workflow validator or another solution is required.