1
0
-1

Hi community,


When synchronizing comments between Jira Cloud and Zendesk, the comments in zendesk include the original author's name in the body of the comment. I have checked the articles at https://docs.idalko.com/exalate/display/ED/How+to+impersonate+a+comment+in+Zendesk and https://docs.idalko.com/exalate/display/ED/How+to+sync+comments+in+Zendesk but these articles cover changing the 'author' object as opposed to a string in the body that contains the author's name. 


I also looked at the visual connection rules and found the 'sync original author' option in the comment sync rule, but this seems to again address the 'author' object instead of the comment body that contains the name of the author.

The desired behavior is for comments that are made in Jira by internal service desk personnel to be authored by the proxy user on the public facing zendesk side (which works out of the box), but also to have the author's name stripped out of the comment body and replaced with a generic username such as 'support team'. In an ideal world, the names of comment authors would not be masked in the opposite direction, such that the Jira side of the sync would receive comments with the original author correctly included while zendesk would be fully anonymized.


Has anyone done a sync like this that can suggest ways to script it?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Michiel,


      This article seems to cover the addition of custom content but I can't grasp how the CommentHelper could remove content instead. It suggests using a Closure, but the article on usage of Closures is more advanced than my Groovy skills. It seems like I would need to define a new Closure that searches for strings containing the same content as the original Author object and replacing it with a default value, is that correct?


      Best,

      Stephen

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Stephen Wein,


        In our documentation, we have a page regarding the custom formatting of comments.
        https://docs.idalko.com/exalate/display/ED/mergeComments+-+with+custom+formatting


        I think this is the one you are looking for, please keep me updated.


        Kind regards,
        Michiel

          CommentAdd your comment...