you could replace every mention sent from cloud with email:
/*
** This code snippet illustrates how mentions can be replaced with the actual name of the mentionee
** Use this in a data filter
*/
replica.comments = issue.comments.collect {
comment ->
def matcher = comment.body =~ /\[~(\w+)\]/
def newCommentBody = comment.body
matcher.each {
target = "[~$nodeHelper.getUser(it[1])?.email]"
newCommentBody = newCommentBody.replace(it[0], target)
}
comment.body = newCommentBody
comment
}
And then use similar logic on server to lookup a user using email
Please, let me know if this helps
Comments:
Vinay commented on 01 October 2021
Mariia Onyshchenko , I have seen that article, but I need the script for description user mentions not for comments!
Ariel Aguilar commented on 01 October 2021
Hi Vinay,
For description, you can try adding this to the Outgoing script: