System is adding using name automatically in Watchlist

Community Alums
Not applicable

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!

 
 

 

24 REPLIES 24

Community Alums
Not applicable

In another instance we are using this 2 BRs it is not effecting there, could you please give the another solution.

 

Thanks,

Anuhya

I would be very surprised if the BR's are exactly the same in the other instance, and you are not getting this behaviour.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Community Alums
Not applicable

When we add Additional comments, system is sending same mail twice. could you please provide the solution.

Hi @Community Alums,

 

I have provided the answer already:

 

Use the last script as:

 

var watch_list = current.watch_list;
var current_user = gs.getUserID();

if (current.caller_id!=gs.getUserID()){
var new_watch_list = watch_list.split(',');
if (new_watch_list.indexOf(current_user) == -1){
new_watch_list.push(current_user);
}
current.watch_list = new_watch_list.join(',')

  You can use the same logic in your other script.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Community Alums
Not applicable

In another instance we are using this 2 BRs it is not effecting there, could you please give the another solution

Thanks,

Anuhya