[Public API] Create/Get comments for a Request without a Request Type

XMLWordPrintable

    • 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."

      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}}]
      }
      
      

            Assignee:
            Unassigned
            Reporter:
            Yuvie Naidoo (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: