I have a 4 level hierarchy
Initiative
Capability (child of Initiative link to parent Initiative)
Epic (child of Initiative link to parent Capability)
Story
Initiatives and Capability are in Project A because they are common across a portfolio
Epics and Stories are in Project B, C, D, etc. because there is 1 project per Service Line
Sometimes people will create an Epic but forget to link it to the parent Capability. I'm trying to run a JQL that will show me all of the Epics in Project B that are not linked to a Capability in Project A.
I've tried various ways but nothing works. Any ideas?