Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, Is it possible to block subtask transition when parent issue is in Done/closed status?

Daisy Hall January 15, 2023

I am looking for any validator/condition in my workflow which blocks the subtask transition when parent issue is at Done/Closed state.

1 answer

1 accepted

1 vote
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2023

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"
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2023

And if you have JMWE you can also use:

parentstatus.png

which will allow you to choose the status of the parent issue.

Daisy Hall January 15, 2023

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?

Daisy Hall January 15, 2023

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.

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2023

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

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 Now
AUG Leaders

Atlassian Community Events