Throwing myself on the mercy of the boards, because I am not having any luck getting this to work on my own:
I have several select lists with options "Please select a value", "Yes", and "No".
I want to run a simple scripted validator against these select lists that prohibits the transition if the selected value is "Please select a value".
What syntax am I looking for?
cfValues != 'Please select a value'
! cfValues*.value.contains('Please select a value')
And variations thereof, which do not seem to work. And I have to assume this is because I am Doing It Wrong.
Again, I want to permit the transition ONLY if the selected value is anything other than "Please select a value".
Additional complication is that the end customer does not want "None" as a value in the list.
Assuming it's a single select I think you want something like:
cfValues['Name of custom field'].value != 'Please select a value'
Why don't you use the validator "Field Required" from JIRA Suite Utilities and get rid of the option "Please select a value" (move that to your field description)
Hi community members, My name is Erika and I’m a product manager at Atlassian. We’re currently investigating how teams are planning work at the program level. We understand that every team in a tea...
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