How to write a JQL query that pulls all tasks with an Epic that contains a particular phrase?

I am trying to write JQL query to use as a filter in the Smartsheet-Jira Connector that will find all tasks (all issue types) across multiple workspaces/Jira boards that contain the word "Exchange". So far the query: "Epic name" ~ exchange is the closest I have gotten, however it only pulls up epics and not the tasks within the Epic and trying to include the Issue Type does not work.