Hi,
I'm using ScriptRunner for JIRA cloud, while using the below snippet in my code
def updatestatus = put('/rest/api/2/issue/' + issueKey)
.header('Content-Type', 'application/json')
.body([
"fields": [
"fixVersions": ["id" : fixVersionID ]
]
]).asObject(Object)
I'm facing the following error
PUT request to /rest/api/2/issue/PG-1810 returned an error code: status: 400 - Bad Request
body: [errorMessages:[], errors:[fixVersions:data was not an array]]
Can someone suggest what I might be doing wrong,