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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

44 views 3 1
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