We're in the process of a migration and I'm simply trying to use scriptrunner to copy data in a multiple user picker into another multiple user picker. A snippet of the pertinent code is:
Issues.search("project = ABC and issuetype = story and 'Multiple Assignee' is not empty").each { issue ->
def mAssignee = issue.getCustomFieldValue('Multiple Assignee')
issue.update {
setCustomFieldValue('Collaborators', mAssignee)
}
}Where both Collaborators and Multiple Assignee are multi user pickers.
I keep getting the error:
Something went wrong: ClassCastException
class java.util.ArrayList cannot be cast to class com.atlassian.jira.user.ApplicationUser (java.util.ArrayList is in module java.base of loader 'bootstrap'; com.atlassian.jira.user.ApplicationUser is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5a12c728)