- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 05:59 AM
Good day everyone,
i am looking for how i can only display sc_req_items in the Approvals widget for the ServicePortal view.
I want to not display the CHG or any other approvals but just the RITM ones.
Tried to clone the widget and modify the code but nothing seem to work
any help will be great.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2025 06:23 AM
but why?
The approval widget is a central place to show all the approvals for the person who logged in.
What if the person has CHG approval then it would be very difficult for that person to check the approvals?
this link has the solution, please enhance
Restrict approval widget to show only RITMs/CRs approval on Service Portal
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 11:27 PM
You need to make changes in the client script, server script and header menu item script.
PFB.
1. Clone the "Approvals" widget
2. Edit server script of the widget by adding the below highlighted line.
3. Edit the client script.
4. Edit the header meny item script.
Output:
Hope this helps.
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 06:07 AM
This is amazing i will try it out and let you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 06:12 AM
Sure 👍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 10:23 AM
ok so i was able to get all the steps done, it half worked.
the menu when you like on the Approvals shows just the RITM but when you click on View All approvals the CHG is still appearing