Attachment sync

Originally asked by Vimalraj Rangasamy on 13 August 2020 (original question)


I have an issue SEV-100 in server1 that is synced to CLD-225 in Cloud instance. I have added the attachment in SEV-100 and it is synced to CLD-225. User in Cloud deletes the attachment after viewing it. However, I should be able to retain the attachment in SEV-100. Also I should be able to sync any new attachment that is added to CLD-225 to SEV-100.

Please assist.


Answer by Francis Martens (Exalate) on 18 August 2020

So it boils down that on server you have 2 options

Option A - don’t sync attachments from cloud to server

Then just remove the line

issue.attachments = attachmentHelper.merge ...

Option B - only sync the attachments which have been added on the cloud

issue.attachments += replica.addedAttachments

Let me know