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

Export cucumber test cases from Xray based on test case status

Dear Xray team

we have requirement in our project team that only the test case with status "ready for automation" should be exported to the repository and start the test case implementation. 

is there any way to set this status as a parameters in the export method and only export the test case with a certain status?

We have a manual workaround to add test case with status "ready for automation" into a test set/test execution. is there a better automated way to do this?


Thanks a lot

Kind regards


1 answer

Hi Shuqi Jiang,


Xray allows you to export Cucumber scenarios (i.e. generate related .feature files) based on either issue keys or a filter id with those issue keys.

These keys must reference issues with the Xray issues types Test, Test Set, Test Execution or Test Plan or any issue type mapped to the Requirement issue type.

A mix of these issue types is supported. In the same export call, you can include keys from each of the above issue types.

Thus, if you want to run just some Test issues (i.e. the ones with workflow status "ready for automation"), you have to use as input the issue keys (or filter containing them) of the Test issues that you want. You can also use a Test Set or a Test Execution or Test Plan as input, as long as they only have the Test issues you want (thus you have to prepare them beforehand).

If you want to export the Cucumber tests based on the requirements, then you'll have to do a "trick": create a filter that returns all the Tests associated with the requirements you want and then filter out the relevant Tests.


issuetype = 'Test' and key in requirementTests('Requirements saved filter') and status = 'ready for automation'


Best regards,

Xpand Add-ons Team

Suggest an answer

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

Marketplace Spotlight: Manage your assets with asset management apps

  The role of IT professionals has become increasingly difficult over the last decade. Our organizations work in an increasingly software-powered world and IT professionals are expected to not...

288 views 3 9
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