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 Xray is not pulling comments, actuals and evidence when creating bug

We are running Xray test executions and creating bugs on the failure, however comments, actuals and evidence adde to the test during the run do not show up in the bug item in jira when creating the defect from the execution. Does anyone know how to resolve?

2 answers

1 accepted

0 votes
Answer accepted

Hi @T Parham ,

If I understood you correctly, you are trying to create a 'defect' from execution page of Xray. By default, Xray only takes your test step details to create a new bug. It's by design and Xray is not picking up comment, actual result or evidence as of now.

In such cases, you might think of raising support request to them.

Hope it will help.


Hi @T Parham 

We have already a couple of suggestion in backlog to improve Xray:

Please contact the Xray Support ( we would like to know more about your use case and help.

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

Hi @Rogério Paiva - Xray Xporter ,

I'm facing the same issue (comments are not added to the tests) when a Test Execution, that has tests, is created on the fly using API.



"tests": [
"testKey": "TK-0001",
"status": "FAILED",
"comment": "Error: expected 400 \"Bad Request\", got 200 \"OK\". Along with some json string."
"info": {
"summary": "Automated TestExecution for release V1.2",
"description": "This execution is automatically created when importing execution results from an external source"

It creates the execution and test's status is updated but the comment is not picked-up. 

Could you please help me know if that's a known issue. If not, then how could I make sure comment is updated as well.




Hi @Zaid Momin 

The comment is added to the Test Run and can be viewed in the Execution Details screen:


And the Test Run only exists if you have two issues, the Test case, and the Test Execution.

So to alter the information in a Test Run, it is necessary to have both keys (The test key and the Test Execution key).

The example you have shown above does not have a Test Execution key, so Xray cannot find the correct Test Run to modify its comment.

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

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Like Zaid Momin likes this

Thanks @Rogério Paiva - Xray Xporter for the valuable inputs. This helped me. 

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