How to add additional filters like watch list in scripted list of Incident header menu Service Porta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 11:04 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 11:24 AM - edited 03-27-2024 11:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 08:04 PM
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