Hello,
Please see the below code snippet which is throwing the error-
Code snippet-
def pillarCF = customFieldManager.getCustomFieldObject(10273);
def selectConfig = pillarCF.getRelevantConfig(getContext())
def selectOptions = ComponentAccessor.optionsManager.getOptions(selectConfig)
error-
2021-04-16 15:35:35,109 ERROR [common.UserScriptEndpoint]: ************************************************************************************* 2021-04-16 15:35:35,111 ERROR [common.UserScriptEndpoint]: Script console script failed: groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getContext() is applicable for argument types: () values: [] Possible solutions: getContext(), setContext(javax.script.ScriptContext) at Script215.run(Script215.groovy:41)
Any help would be appreciated..