Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to download attachments from test run evidence?

Hi, I am trying to download the attachments from test run evidence using python script. But I am unable to download it. 

I am using the rest api suggested by the xray cloud documents.

Here is the API I used,{attachmentId}

But that is always through response code 404. 

TestRun results are shown in different link like execution page.

Here is my attachment link,{attachmentId}


Can anyone please help me to download the attachments from above API

1 answer

Hi @Vignesh Sundar 


The API seems correct, although we advise using version 2 of API:

Before using this request, it is necessary to set up API Keys ( and perform authentication ( to get a valid token.

Also, we advise making command-line tests using the API to make sure all requests are working as expected.

If you need further help, please contact Xray Support ( so that we can request additional information and investigate further.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

118 views 0 9
Read article

Atlassian Community Events