Unable to get thumbnail id from endpoint /rest/api/3/attachment/thumbnail/{id}

v-mchette
Contributor
January 1, 2025

I used to read the thumbnail id of an attachment in a Jira workitem. From couple of weeks, I am not getting thumbnailid from the response headers from above rest endpoint. Suggest an alternate to find get thumbnail id, so that I can update jira workitem with the thumbnails in the adf content. Currently our application is breaking since we don't get thumbnail from API.

1 answer

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 1, 2025

@v-mchette -

I have not experience this issue at this time.  I would recommend you to contact Atlassian Support team (https://support.atlassian.com) for assistance as the documentation page still showing the REST API (v3) are valid -

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-group-issue-attachments

For your REST APIs call - the account that you use to authenticate connection - Does it have all the proper permissions (as stated in REST APIs documentation)?

Permissions required: For the issue containing the attachment:

  • Browse projects project permission for the project that the issue is in.
  • If issue-level security is configured, issue-level security permission to view the issue.
  • If attachments are added in private comments, the comment-level restriction will be applied.

Hope this helps.  Sorry.

Best, Joseph Chung Yin

v-mchette
Contributor
January 3, 2025

No, that might not be due to lack of user permissions. I have admin privileges on the Jira instance. And the application used to receive the thumbnail id from jira rest api. I need to update the Jira workitem using rest api, so I need the thumbnail so that image preview is available when I update workitem using rest api. Without thumbnail, if the jira workitem is updated thumbnail is not updated and image is broken

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events