-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
5.1.8, 6.4.3, 6.4.10, 7.0.10, 7.1.2, 7.1.8, 7.3.0, 7.1.9, 7.6.2, 7.2.4
-
5.01
-
96
-
Severity 2 - Major
-
24
-
Actual behavior:
When importing a issues from a Jira instance A into a Jira instance B using any of the method listed below, if there's an Application Link cross linking issues, the Remote Links (=Web Links) are not carried over to the target Jira instance:
- The Jira native Project Import functionality
- The Jira native CSV import functionality
- The 3rd party add-on Project Configurator for Jira (since it is relying on Jira library to perform the import)
Steps to reproduce:
- Create a new project.
- Create an issue in that project.
- Web Link it to something
- Create an XML backup.
- Delete the issue.
- Project Import that backup, overwriting the project.
- Access the issue.
Expected behavior:
Have the remote links imported into the instance.
Actual behavior:
The remote links are not imported.
Workaround:
The workaround consists in using the Jira REST API to get the remote links from the source instance and import them into the targer instance:
- Run the following API command on the source Jira instance for all issues you need to copy the remote links for. Make sure to replace <SOURCE_JIRA_BASE_URL> with the Base URL of the source Jira instance and <issueIdOrKey> with the Jira issue key (from the UI) or issue ID (from the Database):
GET <SOURCE_JIRA_BASE_URL>/rest/issue/{issueIdOrKey}/remotelink
-
- Here's an example of the JSON returned:
{ "id":10001, "self":"<SOURCE_JIRA_BASE_URL>/rest/api/2/issue/KRIS-11/remotelink/10001", "application":{ }, "object":{ "url":"https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-getRemoteIssueLinks", "title":"test", "icon":{ "url16x16":"https://docs.atlassian.com/favicon.ico" }, "status":{ "icon":{ } } } }
- Here's an example of the JSON returned:
- Take the body of that JSON and post it to the Target instance using this call. Make sure to replace <TARGET_JIRA_BASE_URL> with the Base URL of the target Jira instance and <issueIdOrKey> with the Jira issue key (from the UI) or issue ID (from the Database):
POST <TARGET_JIRA_BASE_URL>/rest/issue/{issueIdOrKey}/remotelink
You might consider writing a script that will bulk execute these API calls.
- is duplicated by
-
JRASERVER-34362 Project Import does not include Web Links
- Closed
- relates to
-
JRASERVER-36629 Project Import does not import Custom Field Select Option values
- Closed
-
JIM-1151 Loading...