I am looking for any validator/condition in my workflow which blocks the subtask transition when parent issue is at Done/Closed state.
Hi @Daisy Hall and welcome to the community!
Take a look at this thread: https://community.atlassian.com/t5/Jira-questions/Hello-Is-it-possible-to-block-subtask-transition-when-parent/qaq-p/2240080
If you have scriptrunner or JMWE you can use write a validator within the create transition of your subtask's workflow:
issue.parentObject?.status.name != "Done"
And if you have JMWE you can also use:
which will allow you to choose the status of the parent issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ - Thanks for reply. I feel Parent Status Validator is not suitable for workflow with more number of status (Transition - All to All) :(
Also was the thread link for any similar case? Could you pls provide the correct link.
Any further suggestion or quick way to achieve it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basically the case was to block closure of parent issue when linked/subtask is not in done state. I am looking for quite its opposite, i.e transition of subtask should be blocked when parent issue is in done state.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Blocking a subtask when the parent is in the done status is doable as well. But why you want to do that? I mean you are going to leave "trash" on your kanban/scrum board instance with unfinished subtasks which can't be moved/transitioned because their parent is in the done status. This is wrong imho.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.