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

Why is description field mandatory for xray generic tests

I am attempting to pass a JUNIT XML test result to xray using 

curl -H "Content-Type: text/xml" -X POST -H "Authorization: Bearer $token"  --data @"data.xml"


This should create a "generic test" result however I am receiving an error due to the description field being mandatory.  {"error":"Error creating Test Execution - Description is required."}


How can this be avoided.  Can the description field be non mandatory for the generic test type only or do I need to send a multipart request?

1 answer

Hi @Kevin Malley 

The error refers to the issue Description, which must be mandatory in your project.

So you have two options here, make the field Description optional in your project or use the multipart REST API to provide a description.

When you import a JUnit XML, it will create new Test Executions, which are based on Jira Issues. So if your project requires that the Description of issues is mandatory, Xray cannot create a Test Execution issue without a Description. So either you make it optional or you use the multipart REST API to send the Description text to be used when creating the issue (Test Execution).

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

Suggest an answer

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

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

426 views 2 15
Read article

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