I have the source link displaying on the replica in the remote url field, how can I show the replica link on the source issue?

Originally asked by Destri Weir on 10 February 2022 (original question)


I’m using a visual connection with script.

This code displays the source link on the replica issue:

if (executionInstanceName == “Main”)

if(firstSync){
syncHelper.syncBackAfterProcessing()
issue.customFields.“Remote Link”.value = remoteIssueUrl
}

But reverse engineering it doesn’t work to display the replica link on the source issue:

if (executionInstanceName == “ServiceDesk”)

if(firstSync){
syncHelper.syncBackAfterProcessing()
issue.customFields.“Remote Link”.value = remoteIssueUrl
}


Answer by Francis Martens (Exalate) on 10 February 2022

You have to move setting the remote link outside the if (firstsync) block


Comments:

Destri Weir commented on 10 February 2022

Francis Martens (Exalate)

Worked like a charm, thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.