Need to sort My Task on the basis of sys_updated_on DESC order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2025 03:38 AM
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.
Thanks in advance.
Regards,
Ashish
@Ankur Bawiskar @Brad Bowman @Mark Manders @Kieran Anson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2025 03:41 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2025 03:56 AM
No, not working for all tabs. I have tried by adding grTask.orderByDesc('sys_updated_on'), but it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2025 03:47 AM
OOTB I could see it has only 2 tabs "Open" and "Completed"
Did you customize it to add the middle one?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2025 04:09 AM
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.