I found a solution in the data widgets marketplace module that does exactly what I needed it to do, for anyone who faces a similar problem, look into the
Data Widgets module > Client activites > Set_Filter javascript action
This action allows you to set the filter using its name to whatever you need it to be