Need to sort My Task on the basis of sys_updated_on DESC order.

Ashish Parab
Mega Sage

Hello experts,

 

I have a client requirement to sort my task in DESC order of sys_updated_on. The widget is 'HRM Todos Summary'. In this widget a script include is called 'todoPageUtilsUpdated'. This is a copy of OOB 'todoPageUtils' script, but only the Delegated part logic has been added. We have tried by updating some logic in the updated script, but it is not working. We have also tried updating the activity configuration, but that is also not working. Please let me know if you have any ideas.

 

AshishParab_0-1744885763720.png

Thanks in advance.

Regards,

Ashish

 

@Ankur Bawiskar @Brad Bowman  @Mark Manders @Kieran Anson 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Ashish Parab 

so is the sorting working fine for Delegated section when you are using the new script include?

what changes did you perform?

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

No, not working for all tabs. I have tried by adding grTask.orderByDesc('sys_updated_on'), but it is not working.

 

 

AshishParab_1-1744887147273.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Ashish Parab 

OOTB I could see it has only 2 tabs "Open" and "Completed"

Did you customize it to add the middle one?

AnkurBawiskar_0-1744886816869.png

 

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

Yes, we have customised this tab. If you check on PDI on the completed tab, the list is sorted by updated on. So we have tried by updating the activity configuration just to check if that is working or not, but there also it is not working.

 

AshishParab_0-1744888091555.png