Restrict approval widget to show only RITMs/CRs approval on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 05:23 AM
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.
How can we achieve this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 05:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 11:20 AM
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'-->
2) Add that widget to Portal
cntrl+right click on portal page-> open page in designer-> delete existing widget and add new widget
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.
Please Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Vaishnavi Shinde
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2024 05:35 AM
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
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~