Create a new related list to show Request catalog task on RITM.

Doireboy
Tera Contributor

We are trying to create a new related list on a RITM to display any open catalog tasks (sc_task) from the parent REQ record. However we are not having much joy.

 

The script we have tried is as follows:

 

(function refineQuery(current, parent) {
current.addQuery('request', parent.request);
current.addQuery('request_item', 'IN', 'javascript:current.sys_id');
})(current, parent);
 
Can someone point us in the right direction? 
1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

If you want to see all of the Catalog Tasks that have the 'request' field equal to the same REQ as the current RITM, then you only need your first addQuery.  This will show all of the Catalog Tasks that belong to every RITM with the same REQ.