Hi
I am trying to get a validation where when Resolving an issue if the value of the multi select list contains "Change - Failed or partially failed Production Release", then the user must enter the CR Ref. field, for which I am using the query below
cfValues['Source of Incident']*.value.contains("Change ? Failed or partially failed Production Release") || cfValues['CR Ref.']
based on your link Here
But the problem is that with my query gets fired for any value selected.
Can you please tell me what I am doing wrong
Thanks
Hi Sarathi,
There were a couple of issues with your given script:
I've taken the liberty of correcting these and putting together a working validation:
!(cfValues['Source of Incident'] &&
cfValues['Source of Incident']*.value?.contains("Change - Failed or partially failed Production Release") &&
!cfValues['CR Ref.'])
I hope this helps!
Steve
Hello,
I tested out the same query as you (your first one) and didn't have any trouble getting it work as how you described wanting with the latest version of ScriptRunner.
What version of ScriptRunner are you on?
Jenna
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.
Would you be able to submit a support request on the ScriptRunner support portal? We can get information from you easier and more securely there and hopefully get this issue solved for you quickly.
Jenna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have also tried the following with the same result
cfValues['Source of Incident']*.value.contains("Change ? Failed or partially failed Production Release") && cfValues['CR Ref.']
cfValues['Source of Incident']*.value == ("Change ? Failed or partially failed Production Release") || cfValues['CR Ref.']
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.