is there a Jira query I can use to find stories without test cases? if not, any other way to do it?
We wouldn’t know what Jira API query to execute which would find this. However with TestRail’s reporting, you can use the Coverage for References report in order to see what Jira issues have links to TestRail and which do not.
To get a full comparison you would export the full list of Jira issue IDs from a given story. Then on the TestRail report mentioned above paste the IDs into the box for “The following references only”. This will then get a pie chart that shows % covered/no covered and the list of references will say “No test cases.” where a Jira ID did not match a TestRail test case.