Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-78388

Mapping missing between issue comments and the attachments.

XMLWordPrintable

    • 3
    • 16
    • 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.

      When a comment has an attachment, get issue API has the details about comments and attachments. But if a comment has an attachment, currently there is no way to find out which comment did an attachment belonged to.

      /rest/api/3/issue/

      {issue-id}

      /comment/{comment-id} returns the attachment but instead of returning the attachment ID, it returns UUID for UI rendering purpose.

      The above UUID can't be used with get attachment API (/rest/api/3/attachment/{attachment-id})

      Workaround

      /rest/api/3/issue/{issue-id}

      returns the attachments for comments

      • Check the Content for the Comments in the detailed returned by the API
      • You will find the file name with the same information in the Attachments section
      Comment Attachment section
      "content": [
      {
      "type": "media",
      "attrs": {
      "type": "file",
      "alt": "Screenshot 2025-04-03 at 3.22.34 PM.png"
      "attachment": [
      {
      "self": "https://<>.atlassian.net/rest/api/3/attachment/10069",
      "id": "10069",
      "filename": "Screenshot 2025-04-03 at 3.22.34 PM.png"
      "content": "https://zingersite.atlassian.net/rest/api/3/attachment/content/10069"

              Unassigned Unassigned
              aagrawal2 Anmol Agrawal (Inactive)
              Votes:
              14 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: