I'm trying to add fixVersions value for a stroy and change the status in the story of JIRA using REST API and getting error in for the request call
Info : Added the proper credentials
Req 1 - To set fixVersions :
Url : <JIRA_URL>:<JIRA_PORT>/rest/api/2/issue/<JIRA_ISSUE>
Body :
{
"update": {
"fixVersions": [
{"add":
{"name": "r1.0"}
}
]
}
}
Req 2 To update the Status to accepted :
Url : <JIRA_URL>:<JIRA_PORT>/rest/api/2/issue/<JIRA_ISSUE>
Body :
{
"update": {
"comment": [{
"add": {
"body": "Comment body"
}
}]
},
"fields": {},
"transition": {
"id": "41"
}
}
With PUT method :
Error :
{
"errorMessages": [
"Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: com.quisapps.jira.fieldsecurity.filter.RequestWrapper$1@171c9b81; line: 3, column: 5] (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"
]
}
Status Code : 400 Bad Request
With POST method :
Status Code : 204 No Content
Referred below links not useful my case :
How to deal with above issues ? Any help would be appreciated...