How to show Status in Remote Links

Hi, I am creating remote issue links programatically using remoteIssueLinkService + API REST (like /rest/api/2/issue/" + + "/remotelink) in a postfunction. The idea is to create a direct and reciprocal link between 2 issues in 2 different Jira instances.

All works OK, except that I don´t know how to show the status of the remote issue and how the status is automatically updated in the link as the remote issue change its status, like in this screenshot:

Any help is welcomed!

It has been a while since I last used it, but IIRC the resp. Jira REST API for Remote Issue Links docs are accurate and you need to actively send an updated JSON shape with the same issue ID (via POST for a global one as submitted initially, or via PUT for the internal one returned initially).

  • Note that “If a remote link on the issue exists with the same URL, the remote link will be updated. Otherwise it will be created.”, i.e. you can use you can use POST as an upsert.

This explain why I am not getting the proper rendering of the link:

2019-01-22 20:36:37,734 http-nio-8080-exec-28 ERROR acasari 1236x595109x1 1u14j7u,0:0:0:0:0:0:0:1 /rest/viewIssue/1/remoteIssueLink/render/18332 [] Error occurred while generating final HTML for remote issue link: java.lang.RuntimeException: Failed to load JIRA issue from remote server Caused by: Failed to load JIRA issue from remote server Caused by:

Anyone can tell me what are the right parameters to use ? This is what I have so far (Jira7.9.2):

def linkBuilder = new RemoteIssueLinkBuilder()

linkBuilder.url(“http:/<base_url>/browse/” + Issue_Remoto_Value)
linkBuilder.relationship(“ticket asociado”)