Hi,
I tried to update an issue transition and comment with the following POST call, but I kept getting errors. It seems that the issue lies in "transition" but I am not sure how to solve this. I could make GET requests and other POST requests like adding comments fine.
url = '/rest/api/2/issue/{issueIdOrKey}/transitions'
payload = {
"update": {
"comment": [
{
"add": {
"body": "test"
}
}
]
},
"transition": {
"id": "2"
}
}
response = requests.post(url,data=payload, headers=headers)Error Msg
{"errorMessages":["Unrecognized token 'transition': was expecting 'null', 'true', 'false' or NaN\n at [Source: org.apache.catalina.connector.CoyoteInputStream@558dc7a5; line: 1, column: 12]"]}If I add json.dumps() to the payload, the error messages changes.
{"errorMessages":["Internal server error"],"errors":{}} Appreciate your help