---
title: "[Xray] Templates for migrating Tests from Cloud to Server/Server to Cloud"
canonical: "https://docs.getxray.app/space/ProductKB/46268513/%5BXray%5D%20Templates%20for%20migrating%20Tests%20from%20Cloud%20to%20Server%2FServer%20to%20Cloud"
format: markdown
---
> Macro (toc)

Do you want to export your tests in a template compatible with the one to do the CSV import in the other hosting? 

Now you can! You just need to Xray's Document Generator (DocGen).


> ℹ️ The templates can be changed to add or remove fields. You just need to adapt it to the information you need to export/import.

## Template Scope Summary

All the templates linked in this article only take issues of type "Test" as input source. They rely on the capabilities described in [this article](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44574749) (as well as the overall [Document Generator ones](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565181)).   
  
Out of the box, the fields included are 

|  |  |  |  |  |  |
| --- | --- | --- | --- | --- | --- |
| Key | Summary | Test Type | Priority | Component | Test Repository Folder |

Plus the test content details, depending on the type (Action/Data/Result, Gherkin Definition, Unstructured Definition).

In addition, you could leverage [Jira mappings](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44570571) to add columns, keep in mind their relevance for reimporting though. Please note it is not possible to [export the attachments](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44570618) themselves in this bulk scope.

## Export and import tests: Cloud/Cloud and Cloud/Server

.






1. Upload the template to your instance;
2. Go to the Search for Issues page and search for the tests you want to export and do it using bulk export with DocGen;
3. Open the exported file in Excel, make changes if needed, and then save the file as CSV;
4. Open the Xray Test Case Importer and choose the CSV file (Choose the semi-colon delimiter)
  
5. Do the following mapping and then begin the import:



## Export and import tests: Server/Server



1. Upload the template to your instance;
2. Go to the Search for Issues page and search for the tests you want to export and do it using bulk export with DocGen;
3. Open the exported file in Excel, make changes if needed, and then save the file as CSV;
4. Open the Xray Test Case Importer and choose the CSV file. (Choose the semi-colon delimiter).
5. Do the following mapping and then begin the import:


## Export and import tests: Server/Cloud



1. Upload the template to your instance;
2. Go to the Search for Issues page and search for the tests you want to export and do it using bulk export with DocGen;
3. Open the exported file in Excel, make changes if needed, and then save the file as CSV;
4. Go to Cloud instance, open the Xray Test Case Importer and choose the CSV file. (Choose the semi-colon delimiter).
5. Do the following mapping and then begin the import:

> ℹ️ Please take into consideration the required fields from different hostings. For **Server** are <u>Test Case Identifier,</u> <u>Summary,</u> and <span style="color: #003366"><u>Action</u></span><u>,</u> for **Cloud **are <u>Issue Id,</u> <u>Summary,</u> and <u>Test Type</u>.


## Related articles

[Xray Cloud - Document Generator](https://getxraydocs.atlassian.net/wiki/display/XRAYCLOUD/Document+Generator)

[Xray Cloud - Importing Tests using Test Case Importer](https://getxraydocs.atlassian.net/wiki/display/XRAYCLOUD/Importing+Tests+using+Test+Case+Importer)

[Xray Server - Document Generator](https://getxraydocs.atlassian.net/wiki/display/XRAY/Document+Generator)

[Xray Server - Importing Manual Tests using Test Case Importer](https://getxraydocs.atlassian.net/wiki/display/XRAY/Importing+Manual+Tests+using+Test+Case+Importer)