Comments sync

Originally asked by Florian on 18 November 2021 (original question)


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";
})

Answer by Ariel Aguilar on 18 November 2021

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


Comments:

Florian commented on 19 November 2021

It works, thanks

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