Create a new related list to show Request catalog task on RITM.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 04:15 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 04:38 AM - edited 11-21-2023 04:58 AM
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.