Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to display tickets to users who are in watch list in Service Portal - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to display tickets to users who are in watch list in Service Portal
KB0744409

How to display tickets to users who are in watch list in Service Portal


9997 Views Last updated : Jun 6, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

When the users go to the service portal, under the Requests header menu, only the tickets for which the user is the caller are shown. 

Cause

The current logic in the 'Requests' Menu Item, shows only the tickets for which the user is the caller.

Resolution

Follow the below steps to display the tickets in which the user is on the watch list

  1. Navigate to Service Portal > Portal and open the portal record 
  2. Click through the main menu record that is used (In OOB, it is SP Header Menu).
  3. From the Menu Items related list, open 'Requests'.
  4. Below is the logic in Server Script to display the incident tickets to the user where they are the caller.
    var z = new GlideRecord('incident');
    z.addActiveQuery();
    z.addQuery('caller_id', gs.getUserID());
    z.orderByDesc('sys_updated_on');
    z.setLimit(max);
    z.query();
  5. Change
    z.addQuery('caller_id', gs.getUserID());

    to

    var zq =z.addQuery('caller_id', gs.getUserID());
    zq.addOrCondition('watch_list','CONTAINS',gs.getUserID());
  6. Save the record.

We are adding an OR condition to check if the user is on the watch list of the incident record. The users should now be able to see the watch list incidents.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.