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

This widget could not be displayed.

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.

This widget could not be displayed.

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 yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

28 views 0 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