Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to auto-add watcher from the person at in the latest comment?

I comment a jira as follows:

hi @Lily @Tom  it's a lovely day, isn't it?


I want to use jira automation to add lily and tom as the watchers, but don't know how to fulfill this. Could any guy help?




2 answers

1 accepted

0 votes
Answer accepted

Hi @yztech 

Until that suggestion is implemented, you could built this functionality yourself using Automation for Jira.  For example:

  • trigger: issue commented
  • action: create a variable, and use text functions and regular expressions to extract the mentioned users account id values
  • condition: advanced compare to check if there were any mentions
  • advanced branch: to iterate over the created variable as a list
    • action: add watchers for each mentioned user


To learn more about automation rules, please see this documentation and examples:

Kind regards,

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events