I am trying to use the Simple Scripted Validator to require field entry based upon a custom cascading select field.
I am using the one of the example conditions provided by ScriptRunner:
cfValues['System']?.get(null) == 'ERP'
This condition is not accepted and it shows the following tool tip error:
[Static Type Checking] - Cannot find matching method java.lang.object#get(<unknown parameter type>). Please check if the declared type is right and if the method exists. Possible solutions: grep(), getAt(java.lang.string), grep(java.lang.object), wait(), any(), wait(long) @ line 1, column 1.
Other simpler conditions like issue.issueType.name == 'Bug' accept without error.
What is the cause for the error and how do I resolve it?