Hi,
The Forge example for https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put has a problem.
In the example code for Forge, the last lines are:
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
Calling await response.json()
results in an error, e.g.:
ERROR 13:42:06.687 c394ec7e3fa23d76 Unexpected end of JSON input
While the code works (except for that last line) this is confusing.
The simple solution is to just no do that last line, but an update of the example would save time for those (like me) who actually try to use the example code…
Thanks,
Fredrik