I am trying to follow https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post to change the state of a Jira issue.
When using postman, I can indeed change the state to where I want it to be but I get an empty response even though the documentation mentions we should get a JSON.
When trying the same with an Atlassian Forge App, I also get a JSON error:
ERROR 09:07:21.680 18f7ba448e6ac434 Unexpected end of JSON input SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.json (bootstrap.js:1:3974) at transitionJiraIssue (webpack://qity-wiki-doccontrol/src/shared/jira_rest_api.js:101) at async performJiraTransition (webpack://qity-wiki-doccontrol/src/helper.jsx:95) at async initiateReview (webpack://qity-wiki-doccontrol/src/index.jsx:86) at async controlledDocument (webpack://qity-wiki-doccontrol/src/index.jsx:52) at async /tmp/tunnel7lWwPH02hYbTC/index.js:37196:49 at async /tmp/tunnel7lWwPH02hYbTC/index.js:1656:21 at async asyncMap (webpack://qity-wiki-doccontrol/node_modules/@forge/ui/out/reconcile.js:12) at async /tmp/tunnel7lWwPH02hYbTC/index.js:1608:29
Is this an error from the REST API or am I doing something wrong?