I need to configure the sub task workflow to enable reopen transition if the parent issue is not in closed status.I have added the "reopen" transition to the sub task workflow and tried to find a way to apply built-in conditions in jira to check whether the parent issue is closed or not and ended up with no result.
I have tried "condition based on JQL queries" and "Condition on subtasks"
is there any other way or plugin to do this?
Recommend that you install the ScriptRunner plugin for JIRA if you are running a self-hosted instance.
Then on the conditions page for transition:
Add Condition
Script Condition
and click Add
Simple scripted condition
Enter the Condition to be:
issue.parentObject && !issue.parentObject.status.name.equalsIgnoreCase("Closed")
Add
.The condition will ensure that the issue has a parent and that its parent isn't in the Closed
status.