Originally asked by Jillani Fazal on 03 January 2023 (original question)
Hi,
I have a script integration between zendesk and Jira.
In the comments sent from Jira, when tagging a user, we get the id instead of the name… How can we send the name?
I am using the following script on Zendesk side:
issue.comments = commentHelper.mergeComments(issue, replica, {
comment ->
comment.internal = true
comment
}
)
I checked this doc but was not useful.
The tagged user from Jira is not in Zendesk.
I am sending the comment from Jira as follows:
Outgoing source (in Jira):
replica.comments = issue.comments
Incoming source (in Zendesk):
issue.comments = commentHelper.mergeComments(issue, replica, {
comment ->
comment.internal = true
comment
}
)
How can I adjust it, that if Jira comment is tagging a user from Jira, then I want to replace the tagging with the name of the user?
For example, Jira comment is:
Hi @Hashem
The Zendesk comment will show:
Hi Hashem
Hopefully my issue is clear now. Please keep me informed if you need any more details.