Remote/Web Links won't copy over during project import or CSV import Jira server to Jira server
ISSUE:
Project Import doesn't include remote/web links.
CSV import doesn't respect remote links.
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.
回避策:
- Import project into target instance
- Run the following API command on the source instance for all issues you need to copy the remote links for:
GET URLOFSOURCE/rest/api/2/issue/{issueIdOrKey}/remotelink
Here's an example of the JSON returned:
{
"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": {}
}
}
}
Take the body of that JSON and post it to the Target instance using this call:
POST URLORTARGET/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": {}
}
}
}
As there is no reformatting of the JSON needed to post the links to the target, this should be VERY easy to script.
関連リンク
JRASERVER-30460 - 課題詳細を取得中... ステータス
JRASERVER-68025 - 課題詳細を取得中... ステータス