Notice: Trying to access array offset on value of type int in /var/www/html/wp-includes/formatting.php on line 889

    Download this guide by adding your email below


    Demo Blog

    It’s common knowledge that team members often tag (or mention) each other in comments for various reasons. 

    You can use Exalate scripts to sync user mentions in comments between systems like Jira, Azure DevOps, Salesforce, etc. 

    The following scripts would do the magic.

    Jira Incoming sync

    for(comment in replica.addedComments){ def newCommentBody=comment.body def matcher = comment.body =~ /\[~accountid:([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)\]/ matcher.each { x-> def target = nodeHelper.getUserByEmail(x[1])?.key ?:x[1] newCommentBody = newCommentBody.replace(x[1],target) } comment.body= newCommentBody } def addedComments = commentHelper.mergeComments(issue, replica)

    Jira Incoming Sync
    for(comment in replica.addedComments){
        def newCommentBody=comment.body
        def matcher  = comment.body =~ /\[~accountid:([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)\]/
    matcher.each {
    x->
        def target = nodeHelper.getUserByEmail(x[1])?.key ?:x[1]
        newCommentBody = newCommentBody.replace(x[1],target)
    }
    comment.body=  newCommentBody
    }

    def addedComments = commentHelper.mergeComments(issue, replica)
    Accordion #2
    I am item content. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
    Accordion #3
    I am item content. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

    Comments are closed.