My Approval Widget is not displaying to everyone

Sri56
Tera Contributor

Hi All,

Can anyone please help in visibility of "My approval" widget in service portal to everyone.

 

Thanks,

Sri

1 ACCEPTED SOLUTION

pavan9885
Tera Guru

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 

View solution in original post

15 REPLIES 15

Having the same issue here. Any update?

Luiz Lucena
Mega Sage

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?

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.

Wendy Peterson
Giga Guru

Did anyone ever find a way around this. Our approvers don't have those roles or any roles.

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.