Confluence has been updated to version 6.15.9

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »


This article describes how to sync issue links details to a custom field using  JIRA Issue Link API.

Source side

Send over the issue link details

Outgoing sync

import com.atlassian.jira.component.ComponentAccessor
// ...
// other parts of the script are not shown for simplicity
def jIssue = ComponentAccessor
def ilm = ComponentAccessor.getIssueLinkManager()
def linkToMapFn = { ldir -> 
  { l -> 
      "from": [
        "key": l.sourceObject.key
      "to": [
        "key": l.destinationObject.key
      "direction": ldir,
      "linkType": (ldr == "outward")? l.issueLinkType.outward : l.issueLinkType.inward,
replica.customKeys.issueLinks = [
"out": ilm
  . getOutwardLinks(
"in": ilm
  . getInwardLinks(

Destination Instance

Add the script below in the Incoming sync of the Destination instance to receive issue links information from the Source Instance.

// add the links information to the custom field
issue.customFields."Custom field name".value = replica.issueLinks.toString()

See Also