-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Work Item - Backend - Rich Text
-
None
-
1
-
Minor
Issue Summary
The REST API call to /rest/api/3/issue/<issue-key>/transitions for API v3 doesn't work and outputs an error of "invalid comment body".
Steps to Reproduce
- Create a project e.g. ABC
- Create an Issue
- Add a Screen to the workflow for the Issue Type you want to use
- Then use the transitions endpoint. an example would be curl.
curl -X POST \ --url 'https://<your-instance>.atlassian.net/rest/api/3/issue/AT2-76346/transitions' \ --user 'user@example.com:ojFZqrykxxXXXXXX' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ -d '{ "update": { "comment": [ { "add": { "body": { "type": "doc", "version": 1, "content": [ { "type": "paragraph", "content": [ { "text": "Let's think it in another way should work Prince Nyeche", "type" : "text" } ] } ] } } } ] }, "transition": { "id":"31" } }'
Expected Results
The transition is suppose to work and a comment should be updated
Actual Results
There's an error of "invalid comment body"
Workaround
Use the API v2 for the same endpoint instead.