Repeated name appear in watchlist selection field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16m ago
Hi ,
While I am working on configuration of watchlist in incident form, i found my name is repeatedly coming under watchlist field.
Record producer script
var memberIds = (producer.watch_list + '').split(',');
var userIds = [];
for (var i = 0; i < memberIds.length; i++) {
var id = memberIds[i].trim();
if (!id) continue;
var gr = new GlideRecord('sys_user_grmember');
if (gr.get(id)) {
userIds.push(gr.user);
}
}
current.watch_list=userIds.join(',');
current.u_watch_list = userIds.join(',');
why its not working?
0 REPLIES 0