I want to assign a user list to a multi user picker custom field
The size and content of the list is undefined
/!\ The problem is that the value of the custom field is overwritten and not added at each iteration
So I want the list of all my users in my custom field without knowing the content and the size of the list
customfield_10226 is my custom field multi user picker
listUser.each{ user ->
def update = put('/rest/api/2/issue/' + issue.key)
.header('Content-Type', 'application/json')
.body([
fields:[
customfield_10226:[[accountId : user]]
]
])
.asString()
}