1
0
-1

Sending over comments with codeblocks, will put tags before and after the contents of the codeblocks. How can I remove them?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Both Zendesk and Jira Cloud send their data in Markdown. 


      Jira Cloud Outgoing Sync:

      replica.comments       = issue.comments


      Zendesk Incoming Sync:

      def string = replica.addedComments.last().body
      def str2 = string.replaceAll('\\{noformat\\}','\n```\n')
      issue.comments += commentHelper.addComment("${str2}", issue.comments).collect{it.internal = false; it}

      This will put the comments as public replies. Changing the internal to true will put them as internal replies.

        CommentAdd your comment...