I am trying to set a multi-user field using the API - I am running this from the ScriptRunner console, but I don't think this is a ScriptRunner issue.
My code is as follows:
put("/rest/api/3/issue/AB-123")
.header("Content-Type", "application/json")
.body([
fields:[
customfield_11018 : [{id:"<my user id>"}],
assignee: [id: "<my user id>"]
]
])
.asString()customfield_11018 is a multi-user field, and assignee is a single user field.
When I run this script, there are no errors produced. The assignee is correctly updated, but the multi-user field is set to blank.
Am I doing something wrong, or is this a bug?