Service Portal - My approval list does not show delegate user's approval list

guru_elearn
Kilo Expert

Hi,

We are using Istanbul version. In Service Portal page, "My approval" list does not show the delegate user's approval list.

However, these are getting displayed in "Self service -> Approvals assigned to me".

Could you please let me know how to show these in "Service Portal" page?

thanks

guru

6 REPLIES 6

adrianherdan
Kilo Expert

In the client script on the OOTB widget above "var approvals = []" modify the query with the following. This will make the widget show all approvals including delegated approvals.




var u = getMyApprovals();


var gr = new GlideRecord('sysapproval_approver');



gr.setLimit(50);


var qc1 = gr.addQuery("state", "requested");


if (input)


  qc1.addOrCondition("sys_id", "IN", input.ids);



gr.addQuery("approver", u);


gr.orderBy("sys_created_on");


gr.query();




Please mark as helpful or correct based on impact


asscv
Tera Contributor

 

Let me know what query needs to be adjusted in the client script