How to Filter only sc_req_items in the Approval widget on the ServicePortal

Peter Williams
Kilo Sage

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.

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Peter Williams 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

PeterWilliams_1-1744651540491.png

here is the code changes i made

i did the first section but item #4 Modify the Header Menu Item script.

where do i go to do that?

You can find that in the portal Main menu

In filter navigator, search portals -> service portal-> Main menu

 

Screenshot_20250415-060241.png

 

Screenshot_20250415-060329.png

 

Screenshot_20250415-060406.png

 

Screenshot_20250415-060500~2.pngScreenshot_20250415-060717.png

Ankur Bawiskar
Tera Patron
Tera Patron

@Peter Williams 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

We wanted to have a cleaner version to only show approvals for sc_req_items.

the end goal will to have a separate SP for regular users to approve items and another one for CHG and other items to approval

so i will need to separate the RITM approvals from the CHG and other approvals 

 

just one of those Business requirements i have to work with