1
0
-1

Hello,
I use Exalate for the sync between JIRA and Zendesk. I want all incoming comments to be saved as internal comment and there the original author is also passed.
Individually I can do this, but how do I connect the two commands correctly?


issue.comments = commentHelper.mergeComments(issue, replica,{it.internal = true}) 
issue.comments = commentHelper.mergeComments(issue, replica,
{
comment ->
comment.body =
"[" + comment.author.displayName + "] commented: \n" +
"{quote}\n" +
comment.body + ";\n" +
"{quote}\n";
})
    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Florian, maybe you can do:

      issue.comments = commentHelper.mergeComments(issue, replica,
      {
      comment ->
      comment.internal = true
      comment.body =
      "[" + comment.author.displayName + "] commented: \n" +
      "{quote}\n" +
      comment.body + ";\n" +
      "{quote}\n";
      })

      Kind regards,

      Ariel

      1. Florian

        It works, thanks

      CommentAdd your comment...