- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 04:20 AM
Dear Service-Now'ers,
I'm trying to achieve to filter out Changes from the My Approvals widget used on the Service Portal. Currently Changes are also shown in the My Approvals widget, but these are managed by the CAB. Meaning all the CAB members see Changes on the service portal to approve. Since this is highly confusing we wish to no longer show those changes.
I was hoping that the My Approvals widget was using the My Approvals module to show the changes. So I configured a filter on the My Approvals widget to no longer show Approvals for that contains CHG. Unfortunately this does not reflect to the widget.
Is it possible to change this without creating a new Widget?
Solved! Go to Solution.
- Labels:
-
Service Desk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 04:45 AM
You have to clone approval widget and update the query to filter out the change approvals from showing up.
Add an filter after line 47 of server code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 04:45 AM
You have to clone approval widget and update the query to filter out the change approvals from showing up.
Add an filter after line 47 of server code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 04:49 AM
Hi Vignesh,
Thank you for your swift reply. Would you mind showing me how the code should look like? Unfortunately my js knowledge is less than basic.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 06:12 AM
add this line after 47
gr.addQuery('source_table','!=','change_request');
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 06:29 AM
Thanks Vignesh,
Managed to do it like this.