Jira Comments are all coming through as one user and not the user who is making the comment

Originally asked by Matt Stone on 08 November 2021 (original question)


hen another user in Jira makes a comment in jira, it comes into zendesk as my name not theirs. I attached a screen show, The highlighted name is my name, but I did not make that comment.

This is the outgoing code from Jira we are using:

replica.comments = issue.comments.findAll { !it.internal }

This is the incoming code for zendesk we are using:

issue.comments = commentHelper.mergeComments(issue, replica, {
comment ->
comment.internal = true
comment
}
)

I need comments to show up as the actual user making the comments.


Answer by Ariel Aguilar on 09 November 2021

Can you try on Zendesk incoming:

replica.addedComments.each { it.executor = nodeHelper.getUserByEmail(it.author?.email) }
issue.comments = commentHelper.mergeComments(issue, replica, {
comment ->
comment.internal = true
comment
}
)

Kind regards,

Ariel


Comments:

Matt Stone commented on 09 November 2021

Yes thank you! Thank you for the fast response too!

Matt Stone commented on 09 November 2021

Resolved