How can i set automation to add automatically a watcher that was tagged / mentioned in a task ?
Any ideas ?
Thanks
Hi @Eran Roiter
This is frequent question, and if you search in community posts you may find several different solutions. To help focus that a bit...
Where are you checking for mentions: the description, comment, etc.? Each one may need a separate rule to add watchers.
How many mentions do you want to handle? Adding one can be done with the Manage Watchers action, and adding multiple will require creating a list of them first.
Let's assume you are checking comments and adding one-to-many watchers.
When a mention happens, that appears in a text field like this:
[~accountid:userAccountIdValue]
That expression can be parsed to extract the account id values to use and add watchers.
{{issue.comment.last.body.split(" ").match("\[~accountid:(.*)\]").distinct.join(",")}}
That works by splitting apart the comment to simplify searching with match(), find the account id values, remove any duplicates with distinct if the same person is mentioned multiple times, and then join them together with commas.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.