The problem - when exporting/importing insight into another Jira it gets new ids and keys.
This makes the issues lose the connection to the insight schema when migrating issues from one Jira to another.
Tag objects with the issue key, to be able to recreate the link after.
Import the insight schema
Import the issues
Re-link the issues to insight objects
Tag objects with the issue key, to be able to recreate the link after.
...
Create an attribute called Migration that will be used to identify the objekt late on.
...
Add an automation to tag the object with its own key
...
Results in
...
Migration has now the original objekt key.
...
Step 4. Re-link the issues to insight objects
Go to iHub
Click on Credentials and add basic auth to the other Jira
Click on
...
Integrations
Click New
Select template Jira Core →Search
In the URL add ?jql=project=myP and customfield_x != empty
This will search the Jira for issues with the custom field that is not empty.
Click New again
Select template Jira Core →Edit Issue
Select Parent to be the action above
Enter the URL to the other Jira that will be fixed with references.
Go down to the body section and specify the custom field that will be update
Code Block { "fields":{"customfield_10201":"{{key}}"} }