tied / Zephyr_for_Jira-server-to-cloud-migration

Zephyr for Jira Server to Cloud Migrator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zephyr_for_Jira-server-to-cloud-migration

Zephyr for Jira Server to Cloud Migration

Recent Update - Version 2.1

As part of this release, enhancement to folder migration & cycle migration is released.

Added a new flag property migrate.folders to exclude the folder migrations if there are no folder data is present under the cycle. It can be checked via using the SQL queries or manual check using Cycle Summary page. By default, the flag is set to 'true'.

Please note: if the value is set to 'false', then the utility will skip the folder migration.

Latest Update - Version 2.0

As part of this release, we have released migration of defect links from Zephyr Squad server/DC to Zephyr Squad Cloud. To enable this use the below properties from application.properties file.

  1. migrate.execution.level.defect : To migrate the defect links at execution level.
  2. migrate.step.result.level.defect : To migrate the defect links at step results level.

Major upgrade

As part of latest release we have updated the mapping file creation of test steps and execution in .xlsx format. The new build will not work with already migrated projects since earlier the tool was creating .xls format file and it will not be able to read the .xls format files. Use the latest build for new projects. Keep the old precompiled jars for already migrated project(s).

New properties added to migrate execution level and stepResults level defect.

By default, the properties are set to 'false'

  1. migrate.execution.level.defect : If there are execution level defect in the server instance, then this property can be set to 'true' to create defect data from Zephyr Server to Zephyr cloud.
  2. migrate.step.result.level.defect : If there are step results level defect in the server instance, then this property can be set to 'true' to create defect data from Zephyr Server to Zephyr cloud.

New properties added to improve migration process time.

By default, the properties are set to 'true'

  1. migrate.step.results.attachment : If there are no step results attachment in the server instance, then this property can be set to 'false' to avoid fetching data from Zephyr Server.
  2. migrate.test.steps.attachment : If there are no test steps level attachment in the server instance, then this property can be set to 'false' to avoid fetching data from Zephyr Server.
  3. migrate.update.step.results : If user wish not to update the step results status in cloud instance, then this property can be set to 'false' to avoid fetching data from Zephyr Server & uploading the data in zephyr cloud.
Please read the below instructions to setup the configuration
  1. Run ‘mvn clean install’ command to build the package.
  2. Run ‘mvn spring-boot:run’ command to run the application. This will launch the spring boot server at default port 8080.
  3. The default properties can be updated in application.properties file.
Prerequisite for the application.
  1. Server Base Url
  2. Server Admin Credentials
  3. Cloud Zephyr Admin User Credentials. {AccountId, AccessKey, SecretKey}`
To Generate the API keys.
  1. Navigate to Apps from top menu section.
  2. Navigate to Zephyr Squad.
  3. Click on API keys from the sub-menu.
  4. Find the available keys associated with account or generate one new :)

API-Keys.png

To Get the user account ID from JIRA.
  1. Click on the User icon & navigate to profile section.
  2. In the address bar, you will get the user account id from Atlassian.

img_1.png

To Trigger the migration

Launch the application at http://{localhost:port}/beginMigration

Provide the project id & begin the process.

To View the migration logs.

Navigate to the home directory of the project. It will have a directory created with name 'migration/logs'

To View the migration mapping files.

Navigate to the path specified in the application.properties It will have the mapping file created for the migration project.

To use the precompiled migration tool.

Java should be installed & Java home path should be configured correctly.
  1. Navigate to the /Zephyr_for_Jira-server-to-cloud-migration/PreCompiled-Jars

  2. Download the zip files.

  3. Modify the application.properties file with specific instance information. (Migration File Path, Port, Server instance details, Cloud instance details)

  4. Save the application.properties file after making the necessary changes.

  5. Run the below command to launch the application and it will launch the application at mentioned port.

java -jar Zephyr_for_Jira-server-to-cloud-migration-2.0.jar --spring.config.location=file:./application.properties

Pre checkup list before triggering the migration.

  1. Uninstall the ZSquad plugin from the manage Apps if you have.
  2. Rename the migrated Issue Type from server 'Test' to 'Test_Migrated'
  3. Install the ZSquad addon from the marketplace. It will create the issue type 'Test' w.r.t cloud instance.
  4. Perform the bulk migration of issues from 'Test_Migrated' to 'Test'
  5. Validate the migrated issues associated with new issue type 'Test'.
  6. Perform the project meta data reindex. The re-index is performed by going to COG/Settings > Apps > General configuration (under ZSquad) and project meta re-indexing.

P.S. Please select single project from the list instead of 'All Projects' in case 'All Projects' fails with an error.

About

Zephyr for Jira Server to Cloud Migrator

License:MIT License


Languages

Language:Java 98.2%Language:JavaScript 0.7%Language:HTML 0.6%Language:CSS 0.4%