Change default filter in Task list view

I’m not on v12 but here are some options:

You could try the frappe.route_options method as stated in here How to set the default filters in the list view

To override the source code, you may need to use the hooks as discussed here Default filter in list view

There’s also Save Filter if nothing else works. Good luck!