-
Suggestion
-
Resolution: Unresolved
-
0
-
Issue Summary
In the Jira UI, adding an internal comment does not require the request type to be mandatory. This behaviour should also apply to the APIs
Details
When the Request does not have a request type, JSM public API for Get and Post comment will return a 404 with error message "Either you don't have access to this request type, or it doesn't exist."
- https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-issueidorkey-comment-get
- https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-issueidorkey-comment-post
Walkaround
Use Jira Public API https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/#api-group-issue-comments instead.
When creating internal comment use this payload,
{ "body": { "content": [ { "content": [ { "text": "JSD internal comment", "type": "text" } ], "type": "paragraph" } ], "type": "doc", "version": 1 }, "properties":[{"key":"sd.public.comment","value":{"internal":true}}] }