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'
and for checking if a select field is null ,
cfValues['Name of custom field'].value == null can't work
but use cfValues['Name of custom field'] == null
Take me 2 days to figure it out.
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)
Human behavior is to go with the defaults; we don't want to skew metrics, so we want to force the user to choose an actual value.
Going with "field required" defaults the field value to the first entry in the list, which is not desired.
Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...
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