Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to trigger automation action if comment contains user mention (@mention)?

Hi,

I try to trigger a notification only when a comment does (or does not) contain a @mention.

What I tried so far:

condition.PNG

Unfortunately, this does not work.

Any ideas?

 

Thanks,
Michael

3 answers

2 accepted

1 vote
Answer accepted

Hi Michael, I created the similar topic and at the moment I found part of the answer. To trigger an action when a comment contains (or does not) a mention you should use the following regular expression:

\[~accountid:.+\]

Finally, if you want a rule to trigger when a mention is present in a comment body, it should look like this:

Jira automation 2.png

Hi @Alex ! Tell me if you can create a condition that will track the comment for the words "thank you". For example, if the comment begins with "Thank you". Or it only consists of "thank you".

 

Thanks))

Hi @Petr! I believe you should use something like this:

 

Jira 1.png

Like Petr likes this

Hi @Alex - how do I configure this to work for when a specific user is mentioned in the comment?

 

cheers

0 votes
Answer accepted

Thanks Alex!
Your solution works perfectly for case "contain".


And this is my solution for case "does not contain":

negation.PNG

Hi Michael, you can find the answer here.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,193 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you