Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Content api output

Scott Aquilina January 15, 2022

I have been working on some automation to get the attachment url from the content field in the API and everything was working. However I started getting 303 errors.

When I looked into the API the URL was completely different.

 

When it was working:

Now:
Not sure what happened, but I have tested in 3 environments and I am getting the same result.
Any help would be appreciated.

1 answer

1 accepted

3 votes
Answer accepted
Pramodh M
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 15, 2022

Hi @Scott Aquilina 

Welcome to the Community!!

To get the attachment details,

First, get the attachment id from the GET issue request

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

Now you will have the attachment id to make the GET request on attachment

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-content-id-get

Thanks,
Pramodh

Scott Aquilina January 15, 2022

Thanks for this, seems to have fixed the issue

Suggest an answer

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

Atlassian Community Events