Does anyone know how to sort the HR To-Dos in the Employee Service Center To do page by most recent?

Community Alums
Not applicable

Does anyone know how to sort the HR To-Dos in the Employee Service Center To do page by most recent?

2 REPLIES 2

stefanoperinott
ServiceNow Employee
ServiceNow Employee

Hi,

as written here:

 

The default order for to-dos is due date. If you have too many filters and find that performance is affected, you can order the to-dos by filter. To order by filter, you must enable filter prioritization and assign priority numbers for each filter.

....

If you are ordering the to-dos by filter instead of due date, you must enable the sn_hr_sp.todos_config_display_with_priority property, add the Display priority field to the to-dos configuration form, and assign each to-dos filter a priority number. The to-dos will then be sorted by the filter they are associated with. Within each filter, the to-dos will be sorted by due date.

 

So, if you want/need to sort the HR To-Dos in the Employee Service Center To do page by most recent, I suppose the only way is to clone the ootb to-do widget and change the logic as you want/need there.

 

If my reply has helped in any way, kindly mark it helpful/correct. Thanks!

rajneeshbaranwa
Giga Guru

In order to achieve this you have to make minor changes to script include sn_hr_sp.todoPageUtils

 

You need to update sortByDueDateFunction method in such a way that sorting is done by sys_created_on than due_date

 

 

find_real_file.png