Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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!
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: 100
start: 0
) {
total
results {
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. 
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.