So I'm trying to set checkbox values using script runner specifically Script Listener.
This is the code I'm trying to execute
put("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')
.body([
fields: [
"customfield_10036": [
[["value": "ALL"], ["value": "BT7"], ["value": "MACS"], ["value": "SPINS"], ["value": "BT4"], ["value": "NGB30"], ["value": "NG7S"]]
]
]
]).asString()However for some reason, I get this error
body: {"errorMessages":[],"errors":{"Instrument":"The Instrument value must be an object"}}
How the value not an object.
Thank you