I'm looking to get a list of bugs that exist within one epic. It's okay if it's a bit noisy, or even in multiple queries, as for my purpose I can export it and clean it up. Now, I am able to do this with a tree of work items search but I only see bugs that are children of features, but no lower. The problem in this epic I am querying is that from feature-> user-story -> task there are bugs that are children at each layer, and I need to see them all.
When I try and do a flat of work items query, I can return all bugs but for the entire project but don't know how to filter it to just the ones in one epic hierarchy, without returning to my first problem of only getting bugs that a children of features, but no lower.