create an automation that runs when a comment is added
use a script action to
– extract the latest comment
– trawl the comment for mentions (using regex pattern matching)
– link the mentioned user(s) to the entity
This assumes that you’re talking about the Comments field.
If you are talking about inline comments, it’s another story
I recall that you already had a script that you were using to detect mentions in comments and create custom notifications, or do I misremember?
It would seem that this need is the same, but just needs modifying to link the user instead of creating a new entity.
The script that we had, fetched the mentions from the comments of a task and created a new entity in the separate notification database. That worked perfectly.
In this scenario we need to fetch the mention of the comment within the entity itself and then link the user to the correct field.
I’ve tried to adjust the script to accomplish this. But because the original was quite complex (because of the two separate databases) I need some help.
After the release of the new Inbox we’ve cleaned up our ‘own notication system’ + automations/scripts .
So the exact scripts we had then are gone, but when I’ve tried to fix it myself, I’ve used the scripts that you’ve mentioned in this post. Because I don’t fully understand the script it’s hard for me to adjust it to this use case.