System is adding using name automatically in Watchlist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 03:09 AM
Hi All,
I have an issue, when user raise an incident system is adding his name in watchlist 3 times instead of one time and system is sending same mails 2 times when he add additional comes. Could you please help how to resolve this issue.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 03:51 AM
Hi @Community Alums
Can you please check system properties where the user sys_id is added thrice.
Check business rule or client script related to incident table.
Thanks
SP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 04:33 AM - edited 10-13-2023 04:33 AM
you are adding user to the watchlist, you just have to check if the user is already added, if so then don't add again.
Something like this
var list = current.watch_list.toString();
if(list.indexOf(''+user_sys_id)==-1)
{
var arr = list.split(',');
arr.push(user_sys_id);
current.watchlist = arr.join(',');
}
Took the ref from last screenshot you added, use the same logic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 04:49 AM - edited 10-19-2023 08:36 AM
..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 04:24 AM
Can you please provide me the properties name
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 04:50 AM
No worries, this has nothing to do with properties at all.
You should be good by changing the two BR's you found.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.