How can I Prevent creating sub-tasks if the parent issue is closed/resolved?
I am aware that we can hide the sub-task from below two ways but I am looking for a script runner script to achieve this.
- Hide the Create-Subtask UI element using one of the built-in Script Fragments. OR
- We can add workflow transition, property jira.permission.edit=false
Since we don't want to hide the sub-task create button or disable edit issue, we have added a script validator to stop creating sub-task.
Validator on subtask create workflow.
issue.getParentObject().getStatus().name != "Done"
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event