We have a Sub-Task workflow that has a "Re-Open" step that would allow a user to re-open that sub-task - but we want to prevent it if the Parent task is "Closed".
I have used the following JQL query:
"((issueFunction in parentsOf("issuetype in subTaskIssueTypes() And status not in (closed)")) OR (issuetype not in subTaskIssueTypes() and status not in (closed) AND!(issueFunction in hasSubtasks())))"
This seems to prevent the sub-task from being re-opened, even if the Parent task is not "Closed". What am I missing?