Comments in ZD getting posted twice when Sync with Jira

Originally asked by Shaleen Kukreti on 09 June 2023 (original question)


My Comments are flowing properly from Zendesk to Jira and Vice versa, but the Internal comments are getting posted twice. Please check this screenshot

Scenario: I have Sync only internal comments to go from Zendesk to Jira and vice versa, but when a comment is posted in Jira, it gets reflected twice in the internal section of comments in zendesk

Problem: The Internal comments are showing up twice every time in ZD when sync from Jira

I posted a comment “checking internal again” in Jira and the same was reflected twice in Zendesk

Below is the code used in both end

Zendesk

  • Outgoing
  • Incoming

Jira

  • Outgoing
  • Incoming


Answer by Syed Majid Hassan on 09 June 2023

Hi Shaleen,

So you are duplicating the comments in the Incoming script by having the issue.comments line twice.

I would comment out the line

issue.comments += replica.addedComments

and test.

Please let me know how it goes.

Thanks

Majid


Answer by Shaleen Kukreti on 09 June 2023

Perfect, it worked. Thank you… :smile:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.