To-dos not displaying in task list

Ina
Giga Guru

Hi,

 

I have configured the to-dos for Employee Center to include most types for approvals, and have added task configurations for different tables, such as RITM, Change Request and some custom ones. 

 

This is the issue I am facing: 

For a user without approver_user, the approvals for RITM does not display in the list.

The user has access backend (in fact there is a ACL script that gives access to the entire RITM ticket when they are the approver of said ticket), and passes the Access Permission Analyzer for the approval record as well.

The strange thing is that I am not seeing the same behavior for the other tables, the user can see approvals for custom tables and Change Request. 

For some reason the user is able to see the record when they are given approver_user role. Is it defined somewhere in a widget a check for this role? As it seems to not be ACLs causing this issue.  

 

1 ACCEPTED SOLUTION

Ina
Giga Guru

I found the solution to this. 

 

The To-dos page (hrm_todos_page) that determines what to-dos should be shown uses the HRM Todos Summary widget that calls the todoPageUtils script include that validates the approver_user role.  If the user doesn't have the role, the query excludes sc_request and sc_req_item.

 

What I did to fix it: 

I updated line 1239 in script include todoPageUtils from: 

conditionsQuery.push(queryString.concat('^', condition));

To:

conditionsQuery.push(condition);

 This also means that line 1233 is obsolete and can be commented out or deleted: 

//var queryString = "sysapproval.sys_class_name!=sc_request^sysapproval.sys_class_name!=sc_req_item" 

 

View solution in original post

4 REPLIES 4

Mark Manders
Mega Patron

You will need to check on the widgets you are using, but indeed, I have seen widgets that apply approval queries inside of them.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

I checked the widgets, but I couldn't find anything. The role is not added to the widget itself at least, I should perhaps take a closer look at the code. It's odd to me that i's only for RITM though, and not the other types? 

Ina
Giga Guru

I found the solution to this. 

 

The To-dos page (hrm_todos_page) that determines what to-dos should be shown uses the HRM Todos Summary widget that calls the todoPageUtils script include that validates the approver_user role.  If the user doesn't have the role, the query excludes sc_request and sc_req_item.

 

What I did to fix it: 

I updated line 1239 in script include todoPageUtils from: 

conditionsQuery.push(queryString.concat('^', condition));

To:

conditionsQuery.push(condition);

 This also means that line 1233 is obsolete and can be commented out or deleted: 

//var queryString = "sysapproval.sys_class_name!=sc_request^sysapproval.sys_class_name!=sc_req_item" 

 

LionelM
Tera Contributor

Hello Ina,

 

Thanks alot for this