My Approvals Widget "Loading Approvals"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 07:17 AM
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.
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2021 12:56 PM
I am having a similar issue - did anyone ever get this resolved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 11:00 AM
Hello Chad31,
Did you find the solution for the above query? if so could you please share it with us? I got the same issue