How to exclude specific approvals from My Tasks in EC?

Jacques Clement
Kilo Sage
Kilo Sage

G'Day. In Employee Center's My Tasks, I have a use case where I would like to show approvals for Change Requests, but only when it is in the Assess state. Then, when the change moves to Authorize, I want the corresponding approval NOT to show in My Tasks, as we want this approval to be only done via our weekly CAB meeting, using the CAB Workbench.

 

So far I have not found an easy solution to exclude approvals based on the underlying task's state, both in the My Tasks page (hrm_todos_page) AND the Activity widget.

 

I started looking into the Script Include that calculates the number of entries, and shows the task approval cards on the widget, but could not find an entry point that would prevent me from touching the out of the box code.

 

So far the best I have managed to do is to create to Task Configurations in the Approval To-Dos configuration. When the change is in Authorize state, I leave the Action widget empty and this removes the Approve/Reject. Then I display message to inform the user that given the state, this change cannot be approved (see snapshot below). But they approval still shows in the count and more importantly, it can still be approved from the activity widget. So, I really don't like my workaround.

 

JacquesClement_1-1757575730569.png

 

 

Has anyone come across a similar use case and if so, did you manage to address it gracefully?

 

Thanks.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Jacques Clement 

not possible to do this without heavy customizations.

You cannot achieve this directly with filter conditions etc.

1 way is to exclude CHG approvals from My Tasks and create another Portal menu etc to handle this separately.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Jacques Clement 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur, after doing more research, it appears that your response is not correct. It is possible to address my use case by configuring differently the filter in the Approvals To-dos Configuration. 


On a separate note, I was surprised to see almost identical response from two different profiles (yours and @AbinC) so I refrained myself from commenting any further.

 

Best,

/jc

@Jacques Clement 

Thanks for sharing the update.

I didn't deep dive in this aspect so I thought it can't be done.

If you were able to achieve please do share how it was done so that it helps other community members in the future.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader