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.
Maybe this post can help you:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you give us more details, what exactly is not working?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use a Conditioned validator. Condition allowing the transition only when the parant status is what you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.