Smart Value - Ability to add @ symbol before the usernames

XMLWordPrintable

      When using a Smart Value like issue.comments.last.body.text, it should be good to have the ability to add the @ symbol before the user's name if an user is mentioned in a comment.

      Currently, it will only show the user name:

      • user this is a test

      Instead of:

      • @user this is a test

      The smart values below don’t work:

      {{ issue.comment.last.body.text.replace("(@[a-zA-Z0-9_]+)", "@$1") }}
      
      {{#issue.comment.last.body.text}}
      {{#replace}}({{.}},\b(\w+)\b,@$1{{/replace}})
      {{/issue.comment.last.body.text}}
      
      {{#issue.comment.last.body.text}}
      {{#replace}}({{.}},\B(\@[^\s]+)){{/replace}}
      {{/issue.comment.last.body.text}}
      

            Assignee:
            Unassigned
            Reporter:
            Diego Leitao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: