Apply custom quickfilter button

Hi, I would like to dynamically generate a query and filter the issues in a board view.
I managed to ceate a provider that prepares the dynamic jql query.
Is there a way to tell a board to filter the viewed issues with that prepared query? The same way a quickfilter does.
Thank you.