- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2021 09:32 PM
I need to show the parent RITM number in the Related lists in the catalog task form. Please help me in this.
Thanks,
Regards,
Saloni
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2021 09:52 PM
@Saloni
Create a new relationship under System Definition> Relationship
(function refineQuery(current, parent) {
current.addQuery('sys_id', parent.request_item);
})(current, parent);
Let me know if it works for you
Thanks
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2021 09:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2021 10:28 AM
@Saloni
Did you get a chance to check my response?
Thanks,
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 02:56 AM
Hi Murthy,
Thank you for your help. It works!
Regards,
Saloni

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2021 02:34 AM
Hi Saloni,
First go to system definitions=> relationship and then create a new relation with RITM on task name and then applies to table will be 'Catalog task' and Queries from table will be 'Requested Item'
and this is the script
(function(){
current.addQuery("request", parent.request);
current.addQuery("table_sys_id", parent.request_item.toString());
})();
Now save this relationship.
Go to service catalog => task and open the record and configure => related list and bring in RITM on task to right and save. This should show you your request item.
Please mark my reply as Correct & Helpful, if applicable.
Thanks
Sandeep