Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a automation rule to be triggeres when a user is mentioned?

Martin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2023

Hi,

is there an option to run an automation rule whenever a user is mentioned and to reuse the user mentioned as a variable into the actions section?

Best, Martin

1 answer

0 votes
Kseniia Trushnikova
Community Champion
August 1, 2023

Hi @Martin,

Try to use the combination of the trigger Issue commented and this Advanced compare condition:

First value: {{comment.body}}
Condition: contains regular expression
Regular expression: \[\~.*?\]

To get the username mentioned, use this smart value: {{comment.body.match("(\[\~.*?\])").remove("[~").remove("]")}}
It will find [~username] in a comment body and remove brackets with the symbol ~, so I'll get only the username.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events