Jira tagging question

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.


Answer by Jillani Fazal on 05 January 2023

Hi Sonal Otwani

That helped and the client’s scenario was addressed accordingly. Thank you!


Answer by Sonal Otwani on 03 January 2023

Hi Jillani Fazal ,

Here is the related question, can you please take a look meanwhile we are trying whole usecase end to end?

How to handle mentions with accountId in a Cloud to Server sync (old community)

Thanks,

Sonal