How can I show the Exalate remote link in a custom field?

Originally asked by Filip Labarque on 12 February 2020 (original question)


I know about this page: https://docs.idalko.com/exalate/display/ED/How+to+display+the+remote+issue+link+in+a+custom+field

Which works when creating a new issue in system A, the remote link will be created in the issue on system B.

But I would also like to show the remote link (to the issue in system A) in the issue on system B when creating a new issue on system B.

Does anyone know how to implement this?


Answer by André Leroy-Beaulieu Castro on 12 February 2020

Hi Filip,

Thanks for raising this question, this should be possible with the following approach:

System A:

Outgoing sync:

replica.customKeys.remoteUrl = "http://yourcompany.com"

Incoming sync:

if (firstSync) {
   nodeHelper.syncBackAfterProcessing
}

System B:

Incoming Sync:

issue.customFields?."Remote Issue"?.value = replica.customKeys?.remoteUrl+"/browse/"+replica.key

Let me know how this works out for you!

Thanks,

André