-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
6.0.3, 6.0.6, 6.1.5, 6.3.12, 6.3.15, 7.4.6, 7.5.4, 7.3.9, 7.6.8
-
6
-
30
-
Severity 2 - Major
-
4
-
Summary
When importing a project with a web link, it does not preserve the link.
Environment
- Mac OS X 10.8.4
- PostgreSQL 9.1
Steps to Reproduce
- Create a new project.
- Create an issue in that project.
- Web Link it to something (e.g.: in the screenshot).
- Create an XML backup.
- Delete the issue.
- Project Import that backup, overwriting the project.
- Access the issue.
Expected Results
The Web Link is present.
Actual Results
The Web Link is not present.
Notes
Raised as a bug as unsure if new feature/improvement or a bug. We don't have any mention of web links in our Restoring a Project from Backup documentation.
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 target 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": {} } } }
- duplicates
-
JRASERVER-30460 Project Import does not import Remote Links (Web Links)
- Gathering Impact
- relates to
-
JIM-801 Loading...