Is it possible to include folders from Test Repository when exporting test cases from Xray to a e.g. a CSV file? This is really a need!
Hi @Anette Larsen
No.
I suggest to create a feature request with Xray via, Xray Support or check the Xray roadmap
Welcome to the Community!
Short answer is as @Marc -Devoteam- said, the built-in CSV export from Jira’s Issue Navigator does not include the Xray Test Repository folder because that folder path isn’t a native Jira field.
However there are supported ways to get it:
Using GraphQL each Test exposes its repository folder (including the full path). Example you can run in Postman or your CI:
{getTests(jql: "project = ABC AND issuetype = Test"limit: 100start: 0) {totalresults {jira(fields: ["key","summary"])folder { path }testType { name }}}}
Test.folder.path is the full folder string like /Regression/Login. 
getTests supports filtering by folder directly, i.e.: folder: { path: "/Regression", includeDescendants: true }. 
Endpoint & schema refs: GraphQL index and getTests. 
GraphQL Schema for assistance
Exporting to CSV: take the JSON and flatten jira.key, jira.summary, folder.path, etc., then save as CSV (Excel/Power Query, jq, or your ETL of choice).In case assistance is needed, our support is here for you.
Best,Francisco
It looks like you're new here. Sign in or register to get started.