How to sync issue links to a custom field with Jira Issue Link API

    Warning: Despite our best efforts, code can change without notice due to a variety of factors. If you encounter an issue in any of the code shown here and find that a specific block of code is not correct, or is causing errors, please check with the Community to find an updated version.

    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

    1. replica.issuelink = issue.issuelinks
    

    Destination Instance

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

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