I am trying to achieve this by using post functioning "Transition" (provided by Miscellaneous workflow extensions) which allows to add a groovy condition. This what i am trying:
ConditionalTransition.png
I am using following condition:
if(issue.get('Needs Merging') == 'Yes') {return true;}
But it is not working and when user clicks on the transition it simply executes the original transition which is "A" to "B" even if the field value is set to "Yes".
What am i doing wrong? please help?
Regards,
Zeeshan
Unless the value was already saved from before the transition i don't think the script has access to the current value in the field. I've done similar stuff but the field I checked was already saved from the previous status. I used the the conditional function and had multiple transitions, one for each value option.
Hi,
Thanks for your answers. Yes the value is already saved in one of the previous transitions. Now how can that be accessed in script?
Regards,
Zeeshan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also think it is necessary to save the value before starting the transition. If you can manage this it should be quite simple.
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.