It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer accepted

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
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you