Display Assignment Group in Comment Notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 04:00 AM
Hello All,
I have a requirement to update the ${comments} in the body of the notification. If the comment is made from the Assignee of the ticket, it should show the comment as below:
Has anyone done this? Is it feasible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 05:02 AM
when you use ${comments} it shows name of person who added that comments and the date/time
You want to display comments only when it's added by assignee?
If yes then you need to use email script and check who is the sys_update_by and compare with the ticket Assignee
what did you start with and where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 08:05 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 10:08 PM
Hi @Amit Giri
If you want to just check whether the comment is updated by assignee then you can use the following:
- Create a email script as Ankur suggested and check the updated by value, if it comes directly then perfect otherwise we would need to use regex to find the user by taking the latest comment.
- Once we have the updated by then we need to check if user is member of the current assignment group.
- if it is then just print the comment in email script itself
- use the email script in notification.
If you need help with the code, I can help. Please let us know if you need further help.
Best Regards,
Brahmjeet