For context we have the following issue Hierarchy set up
Initiative > Milestone > Epic > Stories, Tasks, Bugs
Stories Parent is Epic
Epic Parent is Milestone
Milestone Parent is Initiative
Each issue type has its own workflow and statuses associated to it.
I want to write a query that returns me a list of all Epics whose status is DONE, but their Parent (i.e Milestone) status is still in Backlog
We use ScriptRunner and tried this but didnt work, im looking for ideas from people who have experienced something similar in their space , Thanks
(issueType = Milestone and status = Backlog) and issueFunction in parentsOf("(issueType = 'Epic' and status = DONE )")