Employee center My Task approver form not displaying the RITM variable details.

Imam Pasha1
Giga Guru

Hi Team,

I am facing issue with employee center portal in approval request form .

If i impersonate to user who is having role 'approver_user'.

1)On clicking of  My Task  from employee center header i am getting the below errors. and also checked the console browser.

find_real_file.png

Line number 113 (sp_widget.34a149f0531130107eb7ddeeff7b1271.script)

Code in widget : 

function getPostApprovalInfo() {
data.isPosted = true;
data.caption = gs.getMessage("The request was {0}", approvalGr.state.getDisplayValue());
var dateRE = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.*\n/;
var journalEntryComment = commentGr.comments.getJournalEntry(1); // line 113 in widget.
data.comment = journalEntryComment.replace(dateRE, '').toString();
data.timeStamp = approvalGr.sys_updated_on.toString();
}

2)If i give sn_request_read and sn_request_approval_read role then errors are not displaying but approval request variable details are not showing  see the below screen.

find_real_file.png

3)If i assign ITIL role to same user then i can able to see the approval request form details  as expected.

But without assigning others roles like ITIL or sn_request_read and sn_request_approval_read  request item approval form should display complete RITM details.

Could you please help on this.

 

Regards,

Imam.

 

1 ACCEPTED SOLUTION

Imam Pasha1
Giga Guru

Hi Team,

I got resolved my issue by creating Below ACL.

find_real_file.png

 

Regards,

Imam.

View solution in original post

3 REPLIES 3

Imam Pasha1
Giga Guru

Hi Team,

I got resolved my issue by creating Below ACL.

find_real_file.png

 

Regards,

Imam.

Hi Imam, 
Happy to see you where able to fix this for you. However, I'm still experiencing issues with the My Task page for approvals on RITM, even after making an ACL like the one you´ve made.
Screen shot of my ACL: 

find_real_file.png


I realize this thread is marked as solved, but I just wanted to hear your take on this, before I make a new question. 


I have made the ACL you made, but users with only approver_user role still see error messages and cant see details and activity streams, and still receive error messages caused by the commentGr (GlideRecordSecure) still being "Null". 

find_real_file.png

Users can still approve, but gets similar error messages after approving:

find_real_file.png

 

After a user with only the approver_user roll has approved a RITM approval, the user gets error messages when entering My Task page. These seems to be caused by the user not having access to the Journal / Comments of said approval

find_real_file.png

find_real_file.png

Rejecting is not possible, it will result in similar error messages, after writing rejections reason in pop up:

find_real_file.png


I assume you don't have these error messages after creating the ACL? Could I ask you to test this, or tell me if you found a solution to this? 
I´ve tried several things, like changing the commentGR variable to a regular GR, making further ACL´s and such, but nothing seems to completely fix the issues in the My Task page/HRM Todos widget(s).

I hope you are able to help me.

Regards
Lasse

HI Lasse,

Even i had faced same issue and after adding below 2 roles to user my issue got resolved.

1.sn_request_approver_read

2. approver_user

 

Please mark it help and correct the answer if your issue got resolved.

 

Regards,

Imam.