Is there a way to remove synchronisation for the historic data?

Originally asked by Mariia Onyshchenko on 10 November 2020 (original question)


Context: As I’m trialing the connections, the synchronization is recreating all comments, etc between Zendesk and Jira. However, for the migration, all I want is for the link to be created so that subsequent data is synchronized, without duplicating the existing data. Can this be done?

Related to the questions:
How to set up a sync between multiple Zendesk tickets to one Jira Cloud issue? (old community)


Answer by Francis Martens (Exalate) on 10 November 2020

Sure - replica.comments has the ‘addedComments’ field. Just use

issue.comments += comments.addedComments

And you should be fine.


Comments:

James Gwynne commented on 10 November 2020

Thank you. I’m not sure if my implementation was incorrect and I changed something fundamental in the process, but I changed it to

issue.comments.addAll(replica.addedComments) 

with the same format for attachments and that seems to work. The solution you gave didn’t seem to work initially (even though it’s supposedly the same as addAll()?)

James

Francis Martens (Exalate) commented on 10 November 2020

hmm - not sure what to answer. addAll is indeed resulting in the same