API to Fetch ID Mappings from Jira Cloud Migration Assistant
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
After JCMA 1.11.4 (Feature was added as Beta) performing a server to cloud (S2C) project-by-project (PbP) migration through Jira Cloud Migration Assistant (JCMA), the IDs of entities like issueId, projectId, commentId, etc. change on cloud. The PbP architecture is not designed to retain the IDs on cloud.
Sometimes, you may have made external integrations using these IDs, which would not work post migration. You might want to fix these integrations post migration.
This document provides a mechanism for you to fetch mappings of these IDs (serverId, cloudId) so you can use them to fix integrations.
A typical fix is to replace all serverIds with cloudIds in your integrations.
Fetch ID Mappings API
Below are details of an API to help you fetch ID mappings for your server and cloud site after migration.
The provided API is a server-side API and is in BETA phase. It can be removed in future JCMA versions and can be replaced by an alternative (e.g. a cloud based API).
Authentication
A server admin can use their credentials to authenticate their API calls using the following options:
Personal Access Token (PAT)
Username and Password
API Request
GET:/rest/migration/latest/report/id-mappings
Query Parameters
Query Parameter | Description |
---|---|
| The cloud site url on which the migration was performed. e.g. Note: The |
| (default: |
Example API call using curl
curl -u {username}:{password} https://{your-server-base-url}/rest/migration/latest/report/id-mappings?cloudSiteUrl=https://{your-cloud-site}.atlassian.net&invalidateCache=false
Downloaded file path
Once the API is called, the id mappings file will be generated in {jira-home}/id-mappings
where jira-home is the absolute jira home path on the Jira On-Prem instance.
API Response
Response Status Codes | Explanation |
---|---|
202 |
|
200 |
|
404 |
|
400 | This is returned with the following messages -
|