Jira Comment User Sync to Zendesk

Originally asked by Mark Adkins on 10 June 2020 (original question)


We have a user setup in Zendesk called “Jira Proxy”. When Jira syncs comments back to Zendesk, they come from “Jira Proxy”. We can’t tell which user in Jira added the comment. Is there a way to fix this or is there a way we can automatically add the username to the comment so Zendesk knows who made thee comment?Source: Jira Server/Datacenter (old community)


Answer by André Leroy-Beaulieu Castro on 10 June 2020

Hi Mark,

In the receiving end you can use this helper method to decide what parts of the comment you want shown:

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

Let me know if this answers your question, more info can be found in the following link:

https://docs.idalko.com/exalate/x/MgAk

Thanks,

André