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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Service Desk: download attachment via REST API Edited

I would like to download the attachments that are provided the Service Desk REST API. Retrieving metadata is not the issue but as soon as I try to download the file (via the link in content or thumbnail property) with the OAuth token I see the log in page instead. Currently, the links have the following format: https://SITE.atlassian.net/servicedesk/customershim/secure/attachment/10000/Screenshot.png?fromIssue=10010

Any idea how I can download the attachments instead?

1 answer

0 votes
brbojorque Community Leader Dec 29, 2019

Hi @Julian Hundeloh ,

I tried to do it in my end and it works.

Whatever authentication you've used in retrieving the metadata should also need to be used to download the attachment contents.

Protip:

Use basic authentication and test it first in Python or Postman.

https://-.atlassian.net/servicedesk/customershim/secure/attachment/10000/Capture0.png?fromIssue=10000

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you