How to display a remote issue link in a custom field

    This article shows how to synchronize the remote issue link to a custom field on destination instance.

    Destination side

    1. Add a URL custom field. Let's name it "References".

      Note: Check out Atlassian documentation for more information about custom fields: Adding a custom field

    2. Add the code below into the Incoming sync
    1 // We can concatenate the string with the key and the Jira Url(X), remember to update accordingly
    2 issue.customFields."References".value = "https://X.atlassian.net/browse/"+replica.key

    Note: "References" is the name of the custom field, you've created in the first step. You can change it to any custom name.