-
Suggestion
-
Resolution: Unresolved
-
None
-
3
-
16
-
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" |
- relates to
-
JRACLOUD-74295 Include attachment metadata on issue updated webhook events
- Gathering Interest
- causes
-
PCS-133948 Loading...
-
PCS-144851 Loading...
-
PCS-147909 Loading...
-
PCS-173767 Loading...