- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2019 06:14 AM
Hi All,
Can anyone please help in visibility of "My approval" widget in service portal to everyone.
Thanks,
Sri
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2019 06:28 AM
Hi Sri,
if you want to show the my approval widget to every user in service portal there is role is defined in line 128 in your widget server script you can comment the role so all users can see the my approval widget.
2. As chuck replied you can check the roles and you can r emove the roles from their
data.ids = ids;
data.approvals = approvals;
data.showApprovals = true;//gs.getUser().hasRole('approver_user');
// for pagination
Note: please mark my answer helpful or correct so it would not wipped out from the community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2021 03:46 PM
Having the same issue here. Any update?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2019 07:53 AM
Same behavior here after upgrade to Madrid.
And as our friend above, Les, not a good idea for us to add this role to users. Will badly affect our license count.
Any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2021 10:47 AM
Just wanted to say thank you Luiz, that was a big help to me as I was in the same boat as everyone else.
I also just wanted to say I had to comment out line 19 for it to work for me though.
// var isMine = gs.hasRole("approval_admin") || (gs.hasRole("approver_user") && isApprovalMine(app));
Might help someone else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2020 08:26 AM
Did anyone ever find a way around this. Our approvers don't have those roles or any roles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2020 03:12 PM
Hi Wendy,
I've edited the piece of code shown above.
So instead of:
data.ids = ids;
data.approvals = approvals;
data.showApprovals = true;//gs.getUser().hasRole('approver_user');
// for pagination
I modified to:
data.ids = ids;
data.approvals = approvals;
data.showApprovals = true;//gs.getUser().hasRole('');
// for pagination
That way, no role is required for approval.