After upgrading to JIRA v8.20.6 and Script Runner 6.46.0 I'm receiving the following error message at workflow post function:
import com.atlassian.jira.issue.CustomFieldManager
def customFieldManager = ComponentAccessor.getCustomFieldManager()
CustomField Contractor = customFieldManager.getCustomFieldObject("customfield_18102")
Static type checking: Cannot find matching method java.lang.Object#getCustomFieldObject(java.lang.String)
Before the upgrade it worked.
Please help to resolve.
Thanks