The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
1
0
-1
Mikael Bohlin
- Mar 13, 2020
How to add a text string in front of the synced comment from JIRA to Zendesk side in order to identify the name of the updater in JIRA.
Source: Zendesk
- connector-cloud-zendesk
- Comment
CommentAdd your comment...
1 answer
- 210
Hi!
You can do something like:
replica.addedComments = replica.addedComments.collect{ c -> def remoteAuthor = c.author.username c.body = "Comment from "+remoteAuthor+" in Jira:\n "+c.body c } issue.comments += replica.addedComments
- Mikael Bohlin
Hi,
thank you for feedback. Unfortunatly the "author" was not synced. I assume this is setup on the incomming side on Zendesk ?
- Juan Grases
Could you clarify on "the author was not synced"? You mean that the comment from Jira, was created in zendesk with the text "Comment from null in Jira:\n "+c.body ?
- Mikael Bohlin
Yes , correct we received null from c.author.username in Zendesk.
How to fix ?
- Juan Grases
It seems username is not available on Jira Cloud due GDPR limitations, you can use email instead:
replica.addedComments = replica.addedComments.collect{ c -> def remoteAuthor = c.author.email c.body = "Comment from "+remoteAuthor+" in Jira:\n "+c.body c } issue.comments += replica.addedComments
- Mikael Bohlin
OK, that worked,
do you have a list of "variables" that we can use ?
Regards
Mikael
CommentAdd your comment...
Overview
Content Tools
search
attachments
weblink
advanced