Issue
I have a new Jira instance that I need to set up to replace my old Jira instance and I want to preserve my linked Issues, what are my options?
Applies To
- All paid SaaS customers
- Integrations
- Jira
Resolution
Linked Issues will lose the link when the old integration is removed however the links themselves are not deleted.
Jira tickets would have different IDs when Jira Cloud changes which means that when the new Jira instance is installed these linked issues would not be restored. There is no current build in tool within the Sentry UI that links back these migrated tickets, however you can write a script using the Sentry API with the following steps:
- Install another Jira integration on the org so there are basically 2 configurations for Jira
- You can then get all the issues linked to integrations using GroupIntegrationEndpoint. This endpoint is not publicly documented however is detailed by our engineer in a related Github discussion thread here.
- Now that you have issues and integration IDs for each issue you need to make a
PUT
request to GroupIntegrationDetailsEndpoint with the issue in mind and the new integration ID to create a Jira ticket for it on the new Jira cloud see below:
PUT https://us.sentry.io/api/0/organizations/{org-slug}/issues/{issue_id}/integrations/{the_new_integration_id}/
For simply uninstalling and reinstalling of the same Jira integration instance, please see our help article What happens if I need to remove and reinstall my integration?