Migrate from Datacenter macro to cloud
Asset Data Studio helps convert pages migrated from data center Confluence to cloud Confluence by replacing the old native macro with Rixters Asset Data Studio macro.
How it works
The migration can map schema, object types, attributes, and optionally the object instances, but this requires the old datacenter key to be part of the object.
The flow consists of these steps: export the schema from the datacenter and upload it to the asset macros migration page in the cloud.
This document does not cover how the datacenter key is assigned to the object in the cloud instance for object-to-object mapping.
Groovy Schema Scripts
Jira Version | Groovy Script | Comment |
|---|---|---|
Jira 9 |
| Script for exporting the schema definition |
Jira 10 - 11 |
| Script for exporting the schema definition |
Step 1. Grant who can perform migrations
Go to Apps → Asset Data Studio
Click on Setup Connections
Click on Migrations tab.
Add the users that shall be able to perform the migration from dc to cloud.
Step 2. Export schema definition from datacenter
Download the export script to get the old schema, object type and attributes ids.
Put it in the Assets script folder on you Jira datacenter instance, normally located at
/var/atlassian/application-data/jira/plugins/assets/groovy_scriptsNavigate to View and run scripts in the Manage Apps → Assets section
Load the script dc_export_schemas.groovy
Optional provide a Issue key to attach the result to an issue or leave blank to get the output only on the Jira server. Default directory is the /tmp folder.
Click Test Script button to run it.
Step 3. Migrate Confluence pages from datacenter macro to Asset Data Studio macro
Go to Apps → Asset Data Studio
Click the DC Migration tab
On the General tab
There are two subtabs: Configuration and Mappings
On Configuration
Specify the optional attribute name of the cloud attribute holding the old datacenter key. Use this for migration to look up the new key if the configuration points directly to an object key.
Select the dcKeyFormat: ID or PREFIX+ID.
ID: object number in the datacenter instance, e.g., 134.
PREFIX+ID: object key format, e.g., MYKEY-134.Select the connection to build the mapping table.
On the Mappings subtab
Upload the dc schema definition.
Click Save to build the mapping table.
Default attributes like, Key, Name, ObjectType, Created, Updated will not be mapped to any id it will use the default values instead.
On the Migrations tab
Create a new migration.
Name it as you prefer.
Select spaces to convert or all.
Click Save draft or Run.
Run and wait for the migration to complete.
Mapping of the views