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

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

XRay Import Execution Results - Add defects to a manual step using json?

I was following the steps in this page to upload a test execution result, and I've managed to get nearly everything we use working, except for Defects. How can I add an existing defect to a manual test step?


I tried "defects" : ["EXAMPLE-101"] , but it didn't work. Is it even possible? I didn't see it in the schema.

2 answers

Hi Mario,

To import Test Step results, please see more info in our documentation. Here we have some examples that could help you:

All about our REST API:

Best regards,
Xray Team

Hello XRay Team,

I'm facing the same challenge in my project. We're not using API's and currently the team is doing testing outside xRay and we would like to import the results into xRay from the other system manually.

Can you please guide us in the right direction? I have referred to all the documentation but there is nothing that tells how to import  Actual results, defects and attachments. May be the JSON format to import the actual results, defects and attachments would help us here..

All the documentation says how to import comments and status ( and few other fields)

Appreciate your quick help. Thanks

Regards, Raj

Hi @Raj 

In Xray you have two ways to add defects:

  1. Manually through the user interface
  2. Automatically through the REST API

If you upload the report manually, it will be necessary to manually set the defect since the reports don't support defect keys.

If you are uploading the report automatically, you can use the REST API after the upload to add the defect.

Any additional questions, please get in touch with Xray Support ( we would gladly assist you.

Thank you.

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

Hello Mario,

I was just wondering if you're able to solve the defects problem you're facing above? Can you please as well?

Thanks and appreciate your help!

Regards, Raj

Suggest an answer

Log in or Sign up to answer

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