Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Xray backup restore

Karoly.Tanczos
July 10, 2023

We are using Jira Cloud and installed the Xray app for Test Managment. Jira Cloud provides the capability to backup Xray data (Jira Cloud backup doesn't contain all Test Managment data in Jira backups, but we are backing up Xray using the "Backup and Storage" menu in Jira Cloud under Settings -> Apps -> Xray -> Backup and Storage) and we would like to restore the Xray data to Jira Cloud.

Is there a way to restore the Xray backup data (multiple JSON files, such as archivedTestRuns, issueHistory, parameterValueLists, projectSettings, settings, testExecutions, testPlans, testRepository, testRunActivity, testRuns, tests, testSets)?

2 answers

0 votes
Mateusz Rusiniak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2025

I know it is old thread but you might fid useful the tool I have created:
https://github.com/mrusiniak/xray_backup

PB-decide
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 2, 2025
Hi Mateusz,
I had a look at your tool and find it very interesting.
How did you find out the JSON structure the Xray testcase importer uses? Is there a documentation or did you just guess?
 
I developed a tool that reads test cases and preconditions one by one with the GraphQL API and copies it to another Jira project. I have a running solution (but forgot about attachments).
 
Your approach looks more straightforward, though ;-)
0 votes
Karoly.Tanczos
September 19, 2023

I was able to spend some time on this, created an automated pipeline that is consuming the Xray backup JSON files, generate multiple JSON files with Test data that can be imported using Jira Test Case Importer feature to restore Xray data.

Michael Aglas
Contributor
October 27, 2023

no details, please... otherwise it could be that people could learn from this...

Like Roberto Vincitore likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events