how do I use conditions/validation in subtask to restrict transition based on status of parent ticket

how can I use conditions/validation in subtask to restrict transition based on status of parent ticket.

for e.g. until the parent ticket arrives in Testing status, the Testing subtask ticket should not be transitioned ahead.

2 answers

1 accepted

0 votes
Accepted answer

Maybe this post can help you:

https://answers.atlassian.com/questions/293936

Hi Udo, Thanks for quick revert on this. I have gone through that post and tried as well, but it still doesn't work for some reason.

Can you give us more details, what exactly is not working?

I am using below script in the conditions of build subtask to restrict further transition, if the parent ticket is not in Build Status ! issue.isSubTask() || issue.parentObject.statusObject.name == "Build"

hmm, I'm not a groovy expert but, since this is a condition for a transition of a subtask the part "!issue.isSubTask()" seems wrong. Remove the "!" or the complete expression.

You can use a Conditioned validator. Condition allowing the transition only when the parant status is what you want.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Jira Service Desk

Looking for anyone who has switched from Zendesk to Jira Service Desk

Hi Community! The Jira Service Desk marketing team is looking for customers who have successfully switched from Zendesk to Jira Service Desk!   We’d love to hear your thoughts on the pros and ...

73 views 6 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you