Sync comments one direction only - Jira Cloud

Originally asked by Eugene A on 07 June 2023 (original question)


Hi all,

I’m currently working on a bi-directional sync between two Jira projects (Project A and Project B). However, when it comes to the ticket comments, I would like to get them synchronized one way only (from Project A to Project B).

Is this something I can achieve? Please let me know if anyone had a similar request.

Thanks

Outgoing sync:

replica.comments = issue.comments

Incoming sync:

issue.comments = commentHelper.mergeComments(issue, replica)


Answer by Jillani Fazal on 13 July 2023

Hi Eugene A

Thank you for connecting with Exalate Community.

The answer shared by Richard K is correct and you only need to comment out the comment lines as mentioned in his reply. Thank you for the input Richard K :smile:

BR,

Jillani


Answer by Richard K on 12 July 2023

Hi,

we are synchronising two Jira cloud instances the same way. Comments sync only from instance “A” to instance “B”
We just commented out in Exalate script the proper lines.

In instance “A” incoming: //issue.comments = commentHelper.mergeComments(issue, replica)
In instance “B” outgoing: //replica.comments = issue.comments

Best regards,

Richard