Note: 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.
Send over the issue link details
1. replica.issuelink = issue.issuelinks
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()