Short answer is that you can't with resorting to the REST API. The following REST API will return a paginated list of filters, with their JQL:
You would need to run through all of the returned records looking for "epic-125" in the JQL.
Hi @Johan Potums -- Welcome to the Atlassian Community!
Yes, and... to what Derek suggests, when you need to do this type of query often and for different issues, you could build an automation rule:
I have not built this rule, but I expect it is possible.
I believe there are also marketplace addons which enhance the ability to manage filters.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events