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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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

XRAY: Export only failed cucumber tests from XRAY Test Execution

Is there an out of box feature available to export the failed test cases from an Xray TestExecution. This option seems to be available in XRAY Server via the user interface.


There is an API available to export all the test cases in XRAY Test Execution.




Is there an option available to pass the status as a parameter to the existing API's?

Server Jira v8.13.13

Please let me know if more details are needed.


1 answer

1 accepted

0 votes
Answer accepted

Hi @Praveen Dharman 

It could be possible since that API allows you to use a filter. And you can create a filter using this JQL function testExecutionTests to return a list of Tests based on Test Execution and also on other arguments such as the Test Run Status.

Check all the Xray enhanced functions here:

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi Rogerio,

Thank you for the answers!

We explored this option of using a filter to export only the failed test cases. It is possible to Export only the failed test cases.

One challenge is that the link/tag of the XRAY Test Execution is missing in the exported feature files.

Due to this reason,  it is NOT possible to import the results back to the same test execution.

One option is to export all the test cases from the test execution to file system. Use a 3rd party to delete the unnecessary(Passed/blocked) test cases.

Other option is to use a 3rd party to add a tag for the Test Execution Id.

Is there any straight forward/out of the box feature to export the failed test cases from Test Execution. This feature is especially needed to re-run the failed test cases.

Hi @Praveen Dharman 

Using the above JQL function, you can use the second argument to filter also the TestRunStatus:

P2 - Test Run Status list separated by "|"(pipe) (Optional)

So it should be possible to list the failed Tests for given Test Executions.

Please contact Xray Support ( if you need further help.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi @Rogério Paiva - Xray Xporter ,

Thanks for the feedback! We already used this option from your previous answer.

Many thanks for the support.

Have a nice day!

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events