My apologies on the delayed response.
To remove the epic link you can just set the value to ānullā in the incoming script.
You first want to check if the replica is empty and that your issue still has the link, you can do something like this to check it.
if (!firstSync && (replica.customKeys."Epic Link" == null && issue."Epic Link" != null)){
// Removes Epic link when replica.customKeys."Epic Link" is null and the local issue still has it's epic link
// To make sure you use the right field you can check it within the entity sync status.
issue."Epic Link" = null
}
Does your script needs to define first āEpic Linkā field in the script?
Like this: Outgoing: replica.customFields.āEpic Linkā = issue.customFields.āEpic Linkā
Or do I have to do something with Epic.send() and Epic.receive() ?
Best regards,
Richard
Comments:
Christophe De Beule commented on 17 October 2023
Hi Richard K,
With the Epic.send() & Epic.receive() function you will keep the child parent relation if the child is sent over.
You donāt need to send the āEpic linkā fields separate.
You donāt need to define the āEpic linkā field first Epic.send() and Epic.receive() will take care of it.