My Approvals Widget "Loading Approvals"

Chad31
Mega Expert

Good Morning everybody. 

I have an issue where when an approval is requested on an INC, the my approvals widget on the service portal for the approver just says loading approvals. 

find_real_file.png

When I remove the approval it goes back to No pending approvals. When looking into this I see that in the HTML for the widget this is what causes that message 

<div ng-if="data.approvals.length == 0 && data.pagination.of != 0">
${Loading approvals...}
</div>

and in the server side script this is what sets pagination 

// for pagination
data.pagination = {};
data.pagination.hasNext = (approvals.length == (parseInt(lastRow) - parseInt(initRow)) && lastRow < rowCount);
data.pagination.hasPrevious = parseInt(initRow) > 0;
data.pagination.from = parseInt(initRow + 1);
data.pagination.to = parseInt(lastRow) < parseInt(rowCount) ? parseInt(lastRow) : parseInt(rowCount);
data.pagination.of = parseInt(rowCount);
data.pagination.showPagination = data.pagination.hasPrevious || data.pagination.hasNext;
data.pagination.currentPage = data.pagination.from > data.pagination.to ? currentPage -1 : currentPage;

The approver has approval user rights, and when I give them ITIL rights, the approval widget shows the approval correctly. Can anybody point me in the right direction on how to resolve this? 

11 REPLIES 11

Chad31
Mega Expert

I know how to debug, but when on the service portal as a none itil user it doesn't give any debugging information. 

Chad31
Mega Expert

SO in some additional testing, I found if the user is the one that opens the INC they can see the approval attached to it on the portal. Not sure if that additional info helps anybody. 

Hi ,

 

Any solution, i am also facing same kind.

 

Thanks

Sophia10
Tera Expert

Hi,

 

did you solve this? I am having the same issue :).

 

Br,

Sophia 

turns out my test data was defected. It works for me, sorry to bug you.