We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to add additional filters like watch list in scripted list of Incident header menu Service Porta

sivakumar_raman
Tera Contributor

Below conditional scripts are not working for watch list, opened by, caller_id  is dynamic me and incident state is new, in progress, oh hold states.

Kindly help me to fix the below script to get desired output.

 

sivakumar_raman_0-1711561946558.pngsivakumar_raman_1-1711562299055.png

 

2 REPLIES 2

SanjivMeher
Mega Patron

I see an issue with the query. It should be 

'active=true^caller_id='+u+'^ORopened_by='+u+'^ORwatch_list='+u


Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,

Also I want to add state condition instead of active=true, correct me with below script condition.

 

t.record_watchers.push({'table':'incident','filter':'stateIN1,2,3^caller_id='+u+'^ORopened_by='+u+'^ORwatch_list='+u});

 

Thanks,

Sivakumar Raman