Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-15609

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

XMLWordPrintable

    • 0
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

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

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

                Created:
                Updated: