Page History
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
String start1="#exalate_comment#"
String end1="#exalate_comment_end#"
for(comment in replica.addedComments)
{
def matcher = comment.body =~ /(?<=#exalate_comment#).*?(?=#exalate_comment_end#)/
matcher.each {
x->
def userId=nodeHelper.getUserByEmail(x,"Project_key")?.key
if(userId){
def string = "<a href=\"#\" data-vss-mention=\"version:2.0,"+userId+"\"></a>"
def test = comment.body.replaceAll(start1+ x + end1,string)
comment.body = test
}
}
}
workItem.comments = commentHelper.mergeComments(workItem, replica) |
Here is the high level notes:
...