Recently we upgraded to JIRA 6.3.15 and ScriptRunner v3 and one of the our Scripted Fields does not work anymor. The log file records the following error:
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method com.atlassian.jira.user.ApplicationUsers#from.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[interface com.atlassian.crowd.embedded.api.User]
[interface java.util.Collection]
It was working just fine previously in JIRA 5. I'm aware of a change in ApplicationUser interface in JIRA 6 but just wondering if the problem lies with my script or the fact that the use of this interface has been changed since the upgrade?
My script is just a simple script that collects user from customfields:
Collection<ApplicationUser> appUserCollection = []
appUserCollection.add(ApplicationUsers.from(issue.getCustomFieldValue(CustomFieldObject)))