I'm using scriptrunner to change certain custom field values, but for whatever reason I can't change value types that are multi select dropdowns. The script runs and returns a success but it doesn't actually work. If the multi select is empty when I run the script, nothing happens. But when the multiselect has a value and I try to run the script, then the value is deleted and the field is set to empty.
def result = put('/rest/api/2/issue/' + issueKey) .header('Content-Type', 'application/json') .body([ fields:[ customfield_11623: [{value:"IO-TEST"}] ] ])
Solved, the solution is wrapping the value in double square brackets.
customfield_11623:[[value: "IO-TEST"]]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.