Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JSWCLOUD-24180

Smart Value - Ability to add @ symbol before the usernames

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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}}
      

              Unassigned Unassigned
              8e2ee97d25b6 Diego Leitao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: