Test Management for Jira (TM4J) allows you to import test cases from Xray, which can save you lots of redundant recreation effort.
An external script converts the file that contains the Xray test cases into a usable format that can be imported into TM4J.
Oh, and we have a way to get your attachments into TM4J, too!
Complete this part of the process in Xray.
Use the filters and/or search bar to filter the Xray test cases you want to export.
The Project and Issue Type filters are useful to focus the cases you want to export.
Test cases you want to import into TM4J should follow a one-file-per-Xray-project rule. If it's too difficult to decide which test cases you want to export, it's usually no big deal to export most or all of the test cases in a project, even if you will not need all of them in TM4J. Once the test cases are in TM4J, you can archive those you don't need.
Click Export, then click XML in the drop-down list.
The exported XML file needs to be converted to a format TM4J knows how to import. You can achieve this using a command-line script.
This part of the process begins in Git.
Complete this part of the process in the TM4J project into which you want to import your Xray test cases.
Map your fields.
Unmapped fields will not be created.
If you intend to migrate test case attachments into TM4J, you must map the Original issue key field at this time. (Additional steps are explained later on this page.)
If the test cases you imported have attachments you also want to migrate into TM4J, complete the steps in the Importing Test Case Attachments section.
Complete these steps if the Xray test cases you imported into TM4J contain attachments you also want to migrate. This is accomplished using the Original issue key custom field you mapped in a previous section. The script (below) then reads attachments from Xray test cases (Jira issues) and uploads them to TM4J using the REST API.