Hi,
In a CLOUD environment Script Listener I am trying to set the a User Picker (single select) to a specific user. I tried with the user key as well as the Name but I am only clearing out the field.
I was using the syntax for updating a standard custom Single Select field which works fine for that type of field.
put("/rest/api/2/issue/${issue.key}")
.header("Content-Type", "application/json")
.body([
fields:[
('customfield_10409'): [value: 'Yes']
]
])
.asString()
But for the user picker this is apparently not right:
put("/rest/api/2/issue/${issue.key}")
.header("Content-Type", "application/json")
.body([
fields:[
('customfield_16431'): [value: 'martyc']
]
])
.asString()
Would greatly appreciate a push in the right direction on this.
Thanks.