Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-30460

Project Import does not import Remote Links

    XMLWordPrintable

Details

    Description

      Actual behavior:

      When you import a project from Instance A into Instance B, if there's an Application Link cross linking issues, the Remote Links are not carried over.

      Steps to reproduce:

      Instance A has ATP-1 issue linking AWD-1 issue that belongs to Instance B. When importing the ATP project into Instance B, the link should be kept and updated to reflect to the correct place.

      Expected behavior:

      Have the remote links imported into the instance.

      Workaround:

      The API referenced is here:

      This step will performed after the project has been imported in the target source:

      https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-getRemoteIssueLinks

      Basically we'd do a simple get from the source for all the issues in a project:

      GET URLOFSOURCE/rest/api/2/issue/{issueIdOrKey}/remotelink
      
          {
              "id": 10001,
              "self": "http://10.125.88.109:8080/jira730/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": {}
                  }
              }
          }
      
      

      All you need to do is change the URL to the target instance and the call to a post, the JSON doesn't need to be reformated

      POST /rest/api/2/issue/{issueIdOrKey}/remotelink
      
          {
              "id": 10001,
              "self": "http://10.125.88.109:8080/jira730/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": {}
                  }
              }
          }
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pcora Pedro Cora
              Votes:
              109 Vote for this issue
              Watchers:
              90 Start watching this issue

              Dates

                Created:
                Updated: