Restrict approval widget to show only RITMs/CRs approval on Service Portal

Ankita Gupte
Kilo Sage

Restrict approval widget to show only RITMs/CRs approval on Service Portal. 

 

On service portal approver can see demand approvals, we want to remove this and only ITSM related approvals should be visible on Service Portal.

 

AnkitaGupte_0-1729858996194.png

 

How can we achieve this

 

3 REPLIES 3

Rajesh Mushke
Mega Sage
Mega Sage

Hi @Ankita Gupte,

 

You need to find the approvals widget and in the server/client script put the condition to show only for RITM/CR/all the remaining tables where ever you return the tasks. Let me me know if you need more help!



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

VaishnaviShinde
Kilo Sage

@Ankita Gupte ,

 

You need to clone the approval widget after clone the widget follow the below steps:

1) Romeve line 23 and add below line to HTML.

<div class="row" ng-if="approval.approval_source_table=='sc_req_item'"> <!-- You can add your table name concating &&approval.approval_source_table=='your table name'-->

VaishnaviShinde_0-1729879197190.png

2) Add that widget to Portal 

cntrl+right click on portal page-> open page in designer-> delete existing widget and add new widget

VaishnaviShinde_1-1729879440524.png

 

Result: There are two approval present for this user one for change resquest and one for requested Item. On HTML script I have added condition to show only requested item so that only 1 approval is displayed. On the header "Approval" count get displays 2 because I didnt change header menu. 

VaishnaviShinde_2-1729879569520.png

 

Please Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Vaishnavi Shinde

 

 

Moin Kazi
Kilo Sage
Kilo Sage

Hi @Ankita Gupte ,

 

Please visit below URL and add highlighted condition in the image -

https://www.<instance Name>.service-now.com/sn_hr_sp_todos_config_list.do?sysparm_userpref_module=0d36298853052300e167ddeeff7b12c9&sysparm_clear_stack=true

Or

You can type in filter navigator - To-dos Configuration > Approvals to access the same record

MoinKazi_0-1730032100543.png

Above changes applied on Approvals Open tab only.

 

[Note: You can make similar changes in other configuration records as well, such as Approvals - Completed and Approvals - Rejected.]

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you found my response **helpful**, I’d appreciate it if you could take a moment to select **"Accept as Solution"** and **"Helpful"** Your support not only benefits me but also enriches the community.

 

Thank you!
Moin Kazi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~