I'm having trouble with using a script in a custom workflow.
Situation:
- i have a status called "External QA"
- I have a custom simple-drop down selector field called "Quality Control Issue (External)?". The choices in the drop down are Yes and No
- Once an issue hits the Resolved state, issues where "Quality Control Issue (External)?" = Yes must then go to the "External QA" status for final approvals and then get closed from there. Those set to No can get closed directly from the Resolved status.
- In the workflow on transition from Resolved to Closed I have a validator script of cfValues['Quality Control Issue (External)?'] == 'No'
- In the workflow on transition from Resolved to External QA I have a validator script of cfValues['Quality Control Issue (External)?'] == 'Yes'
- I have also tried "getvalue()" with each script ... cfValues['Quality Control Issue (External)?'].getvalue() == 'Yes'
Result:
Whether the drop down field value is set to Yes or No, the validators always come back false and fire off the indicated failure messaging.
What am I doing wrong?
cfValues['Quality Control Issue (External)?'].value == 'Yes'
If you use the tag addon-com.onresolve.jira.groovy.groovyrunner you will get the right eyes, otherwise it's just pot-luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.