# 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?

**URL:** <https://community.exalate.com/t/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/5050>\
**Category:** General Questions\
**Tags:** cloud-jira, migrated\_question, remoteurl\
**Created:** [November 4, 2024, 7:40am UTC](https://community.exalate.com/t/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/5050 "2024-11-04T07:40:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:40am UTC](https://community.exalate.com/t/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/5050/1 "2024-11-04T07:40:14Z")

</div>

_Originally asked by Destri Weir on 10 February 2022 [(original question)](https://oldcommunity.exalate.com/questions/42832541)_

* * *

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  
}

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:40am UTC](https://community.exalate.com/t/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/5050/2 "2024-11-04T07:40:14Z")

</div>

_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!

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 6, 2024, 7:40am UTC](https://community.exalate.com/t/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/5050/3 "2024-11-06T07:40:28Z")

</div>

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