Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Groovy Script Runner how do I validate Select List (cascading)

Bastien Vandamme April 16, 2018

Using Groovy Script Runner how do I validate Select List (cascading) ?

3 answers

1 vote
Bastien Vandamme April 16, 2018

java.lang.NullPointerException: Cannot invoke method contains() on null object at Script167.run(Script167.groovy:1) 2018-04-17 12:23:32,937 ERROR [utils.ConditionUtils]: Script follows: cfValues["Support Type"].value.contains('Bug Report')

My field is a custom field cascading select list

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

It is a static compilation error. Just run your script

0 votes
Bastien Vandamme April 16, 2018

What I don't get is that:

 

cfValues["MyType"].value.contains("Checkout")

 

is wrong for Groovy.

 

No such property: value for class

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events