Skip to content

toolsplus/intercom-for-jira-migration

Repository files navigation

Intercom for Jira Migration CLI

ifj is a command line utility to support Cloud-to-Cloud migrations for Intercom for Jira Cloud (ifj). It exports Intercom for Jira Cloud data from a source Jira Cloud site and then imports it into a target site.

Requirements

Source Jira site

Target Jira site

If the user has access to both the source and target sites, you can include both source and target scopes in the same API token and use the same token for both import and export.

Getting started

To run the CLI from a local clone, follow these steps:

git clone <repository-url>
cd intercom-for-jira-migration
pnpm install
pnpm build

After building, run the CLI with Node from the generated dist output:

node dist/src/ifj.js export --source https://example.atlassian.net --user admin@example.com --api-token "$TOKEN"
node dist/src/ifj.js inspect intercom-for-jira-export.jsonl.gz

You may use environment variables or a .env file to set command configurations. Refer to the command documentation below for available options.

Commands

ifj export --source https://example.atlassian.net --user admin@example.com --api-token "$TOKEN"
ifj inspect intercom-for-jira-export.jsonl.gz

Export

ifj export authenticates with Jira Cloud basic auth using an Atlassian account email and API token. It verifies that the user associated with the API token has Jira global admin permission before exporting.

By default, export discovers spaces that are currently connected to Intercom. If none are found, export fails with a "nothing to export" message; pass --space to select spaces explicitly. Explicit spaces are validated for existence and may be exported even when no Intercom configuration exists.

Flags:

  • --source URL: source Jira Cloud URL
  • --user EMAIL: Atlassian account email
  • --api-token TOKEN: Atlassian API token
  • --out PATH: optional output file path. Must end with .jsonl.gz. Defaults to intercom-for-jira-export.jsonl.gz in the current working directory. If the file exists the app will pick a unique name, e.g., intercom-for-jira-export1.jsonl.gz.
  • --space KEY: optional space key. Repeat to select multiple spaces
  • --json: print the final summary as JSON

Environment variables:

  • EXPORT_SOURCE
  • EXPORT_USER
  • EXPORT_API_TOKEN
  • EXPORT_OUT
  • EXPORT_SPACES: comma-separated space keys.

Exports are written as compressed JSON Lines files with the .jsonl.gz extension.

Inspect

ifj inspect <artifact> validates a .jsonl.gz artifact and prints aggregate counts:

ifj inspect migration.jsonl.gz
ifj inspect migration.jsonl.gz --json

Configuration

Configuration precedence is flags, then process environment, then .env from the current working directory, then defaults.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors