The Adaptavist Group LogoDocumentation

Migrate to Isolated Cloud using JCMA

You can migrate from ScriptRunner for Jira Data Center to ScriptRunner for Jira Isolated Cloud using the Jira Cloud Migration Assistant (JCMA). This can be part of your normal migration journey from Data Center to Isolated Cloud.

Note: ScriptRunner for Jira Isolated Cloud is built on Forge. Even though JCMA copies your existing Groovy scripts across, they will not run in the Isolated Cloud environment. All migrated scripts must be converted to TypeScript before they can be activated. See Post-migration steps for details.

Prerequisites

Before starting your migration, ensure the following are in place:

  • ScriptRunner for Jira Isolated Cloud is installed on your Isolated Cloud instance.
  • You are running ScriptRunner for Jira Data Center version 9.32.0, or 10.18.0, and above on your source instance. Migration to Isolated Cloud is not supported on ScriptRunner Data Center versions 8.x or earlier 9.x releases.
  • You have backed up your Data Center environment, including all scripts and configurations.
  • You have reviewed your existing scripts and have a plan for converting them to TypeScript.

How the migration works

When you run a migration using JCMA, ScriptRunner participates automatically; there is no separate ScriptRunner-specific migration step. JCMA copies supported ScriptRunner configurations from your Data Center instance to your Isolated Cloud instance.

All migrated scripts are copied across in a deactivated state, with their Groovy code commented out. This means your Isolated Cloud instance will not be disrupted during migration, and you can convert and reactivate each script at your own pace.

For full instructions on running a migration with JCMA, follow Atlassian's JCMA migration guide.

What is migrated

The following ScriptRunner configurations are automatically migrated with JCMA:
FeatureMigrated with JCMANotes
Custom script listeners✅ YesCopied across, deactivated, code commented out
Custom script fields✅ YesCopied across, deactivated, code commented out
Custom script workflow post functions✅ YesCopied across, deactivated, code commented out
Custom script workflow validators✅ YesCopied across, deactivated, code commented out
Custom script workflow conditions✅ YesCopied across, deactivated, code commented out
Behaviours✅ YesBehaviour structure and project/issue type mappings are migrated. Script code within behaviours is commented out.

What is not migrated

The following ScriptRunner features and configurations are not migrated by JCMA and will need to be recreated manually, or may not have an equivalent in ScriptRunner for Jira Isolated Cloud:

  • All built-in scripts (non-custom scripted features)
  • Picker fields (e.g. User Picker, Issue Picker)
  • Simple scripted conditions (built-in, non-custom)
  • Simple scripted validators (built-in, non-custom)
  • Scheduled jobs and escalation services
  • Script fragments and REST endpoints
  • Any other ScriptRunner feature not listed in the What is migrated table above

You can migrate from ScriptRunner for Jira Data Center to ScriptRunner for Jira Isolated using the Jira cloud Migration Assistant (JCMA). This can be part of your normal migration journey from Data Center to Cloud.

Post-migration steps

After JCMA completes the migration, you will need to manually convert and reactivate your scripts. Because ScriptRunner for Jira Isolated Cloud runs on Forge, all scripts must be written in TypeScript as Groovy is not supported.

  1. Review what was migrated in ScriptRunner for Jira Isolated Cloud to identify what was migrated and any issues encountered.
  2. Convert your scripts to TypeScript. Each migrated script will have its Groovy code commented out. You will need to rewrite the logic in TypeScript using the ScriptRunner for Jira Isolated Cloud APIs.
  3. Reactivate your scripts once they have been converted and tested.
  4. Recreate non-migrated configurations manually, including any built-in features, scheduled jobs, escalation services, and other items listed in What is not migrated.
  5. Test thoroughly in a staging environment before going live. Verify:
    • Listeners fire as expected
    • Script fields return correct values
    • Workflow post functions, conditions, and validators behave correctly
    • Behaviours apply to the correct projects and issue types
Note: Re-migrating

Once custom script fields, listeners, or workflow functions have been migrated, subsequent JCMA migrations will not overwrite them. If you need to re-migrate these items, delete them from the Isolated Cloud instance before running another migration.

Resources

Search documentation

Start typing to search the docs.