Hey I make automation that everytime when you mention some user in the comment he become the watcher also.
But the problem that is worked just when you tag only one user, if I tag multiple users its don't work.
can someone have answer what I need to change in the automation to fix it?
Im attach picture of the automation.
thanks.
(this is the smart value code:
{{issue.comments.last.body.split(" ").match("(accountid:.*)]").remove("accountid:")}}
Hi @Omri Zeman
To add multiple users mentioned as watchers the rule will need to iterate over them with advanced branching.
Please see this earlier post I made on how to do this: https://community.atlassian.com/t5/Automation-questions/Re-Re-Finding-Mentioning-a-User-in-Comment-and-Cust/qaq-p/2368567/comment-id/6895#M6895
Kind regards,
Bill
Is this the correct smart value code for now?
{{issue.comments.last.body.split(" ").match("(accountid:.*)]").remove("accountid:")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That will work, although there are various ways to perform the matching / parsing.
The key for your question about multiple watchers is the need for the branching. Please see that linked answer for more details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Omri Zeman
Seem the smart value of your automation is correct. -> KB link https://community.atlassian.com/t5/Jira-articles/Auto-Add-Watchers-When-User-Is-Mentioned/ba-p/2556829
Can you share the log automation ?
Best,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Omri Zeman
Based on your screen, the smart value doesn’t seem to match the condition.
That’s why the automation isn’t adding the ID of the tagged person as a watcher.
Can you check if some logs have successfully recorded actions?
If all logs didn’t meet the condition, maybe you can try adding a "log action" with the same smart value just before the condition to verify what the value is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.