Dear Everyone,
I would like to run this short script
cfValues['Radio button field']?.value == "Yes"
in Adaptavist ScriptRunner Behaviours but it doesn't work, the error message is: "The variable [cfValues] is undeclared".
Since I got this from here https://scriptrunner.adaptavist.com/5.0.9/jira/recipes/workflow/validators/simple-scripted-validators.html I don't know what I have to import before the script can be run.
I have
import com.atlassian.jira.issue.customfields.option.Option
import com.onresolve.jira.groovy.user.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.getCustomFieldManager()
but that's not enough. With a simple scripted validator the line would work by itself but can someone please tell me how to declare cfValues when it has to be declared?
Thank you in advance!