Service Portal show closed incidents and request items

steveturley2
Giga Expert

Hi all

We've got a requirement for the ServicePortal to show users closed as well as their open incidents & requests.

The list of these comes from a Header Menu scripted list called 'My Calls'

Looking at the code, is it as simple as removing the highlighted text, or something a bit cleverer?

find_real_file.png

1 ACCEPTED SOLUTION

Dont remove

t.record_watchers.push({'table':'incident','filter':'active=true^caller_id=' + u});
t.record_watchers.push({'table':'sc_request','filter':'active=true^requested_for=' + u});

replace them with 

t.record_watchers.push({'table':'incident','filter':'caller_id=' + u});
t.record_watchers.push({'table':'sc_request','filter':'requested_for=' + u});

and in places where you have used addActiveQuery(), add an "//" before them 

View solution in original post

16 REPLIES 16

Can someone help me to display Demands(dmn_demand) on the same page..

I used this script and it worked. But when clicking on RITM number it is not displaying requested item record. Can anyone provide solution to view RITM details.