If sub-tasks are raised while the parent is at a status of "Released", the parent cannot be moved to status "Closed" until all sub-tasks are closed.
I believe this will require a new custom field to be populated automatically during the sub-task's "Create" step that contains the parent issue's status.
The logic should then check if parent issue status field in sub-task = "Released" and if so, require it to be closed before the parent can be closed.
Create a "Text field (single line)" custom field in sub-task issue called "Parent status at sub-task's creation"
Insert post-function Copy a parsed text to a field into sub-task's "Create Issue" with the following configuration:
Note that:
Insert Boolean validator with math, date-time or text-string terms validator into "Close issue" transition in parent's workflow with the following configuration:
Boolean expression used is: count(filterByPredicate(subtasks(), ^%{11900} = "Released" AND ^%{00016} != "Closed")) = 0
Note that: