You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
than add to...(Watcher...or a Custom Field...) adding leads to another question
check if a user already got a mail, it is used for group works since its a custom field user wont get notified. i managed to inform them via comment or email spam everytime the value of picker changes.
But it would be much better if i could just sent a message to the last person/s added an email and avoid duplicates.
Iam not sure how i can split the picker and check for values.
Your scenario seems to be: when someone is mentioned in a comment the first time, I want to add them as a Watcher (or to a Custom Field), and send them an email. When the user is mention again later I do not want to add them to the field again or send another email.
Does that sound correct?
For a question like this, I recommend posting images of your complete current rule and the audit log details showing the rule execution. Those will provide context for the community to offer suggestions.
Without that information...
It appears you have already learned how to find and extract and account ID value from a comment mention. If you pull out all possible mentions from the last comment, your rule could use an advanced branch to iterate over them. Then use an advanced compare condition to determine if they are already listed as a Watcher (or in the Custom Field), and only proceed if they do not exist yet in the field.
Kind regards,
Bill
Almost yes,
iam struggling at this part "how to find and extract and account ID value from a comment mention."
So my Automation would start like Task commented, find the mentioning, than use the account ID for an email or add as a watcher.
(Task commented > compare {{issue.comments.last.body}} has [~accountid: )
The custom field, i have trouble with the many account IDs it saves. So when an Automation starts i have all the accounts, and i will send them all an email even if they were before inside of the custom field.
Yes an advanced compare, to figure out the difference between the newest vaule of the field and the last in a log i guess. I want to subtract the accounts which are doubled to get the unique ones and sent them a mail to inform them, you are on the task.
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.
Let's try this one piece by piece...
First, mentions in comments store only the account ID for a user. To find all of the users mentioned in the last comment, the expression below works. It would split a comment into lines, find mentions, and then extract the account id values.
{{issue.comments.last.body.split(" ").match("(accountid:.*)]").remove("accountid:")}}
That can produce a list of the users, and so they must be iterated over in an advanced branch.
For your scenario, you only want to email the users who are not already watching the issue...and so they must be tested, one by one. And so an example rule would be:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exactly this 🙌
Perfect!
Thank you for the lesson and continue to support.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! I am glad to learn that helped, and also...
Using automation rules often requires both experimentation and learning. To help with those I recommend building skills by:
Happy experimenting!
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.