Subtype Migration
The Subtype Migration snap-in is designed to facilitate the seamless transition of work items (tickets and issues) from one custom schema subtype to another. It efficiently handles large volumes of work items by processing them in batches, transferring custom field values between corresponding fields and maintaining proper workflow stages while preserving data integrity throughout the migration process.
Installation
- Open the DevRev marketplace and install the Subtype Migration snap-in.
- Select the dev org where you want to install the snap-in, confirm your selection, and click Deploy snap-in.
Configuration
-
Go to Snap-ins > Subtype Migration > Configure.
-
Fill in the configuration details:
- Work Item Type: Select either "ticket" or "issue" based on the type of work items you want to migrate
- Source Subtype: Enter the name of the current subtype from which you want to migrate work items
- Target Subtype: Enter the name of the target subtype to which you want to migrate work items
- Field Mappings: Enter each mapping as source_field, target_field, one mapping per line
Field names and subtype names must exactly match how they appear in object customization.
- Each source_field must exist in the source subtype and each target_field must exist in the target subtype.
- Field types between source and target must be compatible for successful data transfer.
- Duplicate field names should not be present in the same subtype.
-
Click Save and Install.
-
Enter /migrate_subtype in the Discussion section of the snap-in to start the migration process.
-
On successful validation, the snap-in presents you with a stage mapping interface. Select the source stage from your current subtype and the target stage from the destination subtype.
- The source stage filters which items to migrate; the target stage sets their destination after migration.
- If the stage diagram of both subtypes is the same, select the same stage as both source stage and target stage to maintain the current stage of work items during migration.
If you need to stop a migration in progress, use the /stop_migrationcommand.
Once the migration starts, you receive a confirmation UI with details of the migration plan. After confirmation, the process begins, and progress updates are posted to the timeline. Large migrations may take time to complete, progress updates are provided throughout the process.
The snap-in intelligently identifies fields present in the source subtype that may not be included in your field mappings, allowing you to make informed decisions about your migration plan.
When the migration is completed, a summary is provided showing total items successfully migrated and any failed items with their display IDs. If any items fail, you can re-run the command /migrate_subtype to retry the migration for those specific items.