When the users go to service portal, under Requests header menu, only the tickets for which the user is the caller are shown.
Any supported release
The current logic in 'Requests' Menu Item, shows only the tickets for which the user is caller.
Follow the below steps to display the tickets in which user is in watch list
- Navigate to Service Portal > Portal and open the portal record
- Click through the main menu record that is used (In OOB, it is SP Header Menu).
- From Menu Items related list, open 'Requests'.
- Below is the logic in Server Script to display the incident tickets to the user where he is the caller.
var z = new GlideRecord('incident');
5.In the above script, change
var zq =z.addQuery('caller_id', gs.getUserID());
and save the record.
(We are adding an OR condition to check if the user is in watch list of incident record). The users should now be able to see the watch list incidents