I am trying to create a remotelink on a JIRA server 1 to a JIRA issue on another JIRA server 2
Ex: Local issue: Local Issue on JIRA 1: LOCAL-1
Remote issue on JIRA2: REMOTE-1
REST call: POST http://<JIRA1>/jira/rest/api/latest/issue/LOCAL-1/remotelink
The following REST post data is used:{
"globalId": "appId=<JIRA2 Application ID>&issueId=REMOTE-1",
"application": {
"type": "com.atlassian.jira",
"name": "JIRA2"
},
"relationship":"duplicates",
"object": {
"url":"<JIRA2/jira/browse/REMOTE-1",
"title":"REMOTE-1"
}
}
The Remote link was created. However, the link details "Failed to load" with a spinning wheel perhaps making an ajax call.
However, if I send the issueId as the issue id of the remote issue itself, it is working.
{
"globalId": "appId=<JIRA2 Application ID>&issueId=7417404",
"application": {
"type": "com.atlassian.jira",
"name": "JIRA2"
},
"relationship":"duplicates",
"object": {
"url":"<JIRA2/jira/browse/REMOTE-1",
"title":"REMOTE-1"
}
}
works properly like a remote issue link created on the JIRA UI.
Can I get some help on this please? I have only the issueKey and would want to avoid making a REST call for issueid given the issueKey. IS it possible to send the issuekey and get the remote link created?
Secondly, I am unable to get a reciprocal link created (like the way it is on UI) such that REMOTE-1 can have a reverselink to LOCAL-1.
Thanks,
Ambica
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.