How to query for work items with ALL children resolved?

Status - is - Unresolved
Children> Status - is - Resolved
but I can't seem to query for ALL children resolved. Is there some way of doing this, or am I out of luck?
7 answers

This is an old question, but I thought I would post a note on here. We ran into the same difficulty in our environment. I eventually came to Jazz.net and started linking all the enhancements I could find that seemed to be requesting this capability. I think I found 3 or 4. Here is one of them:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/165456
In our situation, we came up with a workaround by developing an operation behavior (follow up action) that would count the number of blocking work items whenever a work item was saved and store that number in an attribute (which we called "Blocking Link Count"). We could then query for work items where the Blocking Link Count is zero.
Before we came up with that solution, we developed a stand-alone application that used the REST API to figure this out. So it was essentially a report.
Before that REST API solution, a proposed technique is to look at the plan and hide resolved work items. Work items in the plan with an expansion arrow were work items with unresolved children. If the expansion arrow was not present, then all children are closed.
Just a few ideas there...

the scrum master has a list of all workitems in this sprint. <br>
Sam
Comments

Sam, your response doesn't address the initial question at all. It's not a topic for discussion how and what SM should do in the team and so on.
Currently, we couldn't find a way to create a query Mike is asking about, and seems like there's no way to do it with what RTC currently provides.
If you know the way to prepare such a query, please, let us know

Currently I am telling them to "expand all" in Work Breakdown view in the Eclipse client and to look for stories where all the children are closed. Again, a manual process, subject to Human error, and subject to failure when some children were moved to a different sprint. Yes, I tell them not to do that. Also, this forces them to use Eclipse and many of them are non-coders and should be using the web interface (which has no "expand all" in version 2.x). We need a real-time list of ready-to-close stories. This is something that should appear on a Team Lead Dashboard. It appears that doesn't exist even in version 4. I have subscribed to related work items on jazz.net, but they are sitting in the backlog, unassigned. I was hoping there is a workaround out there. Something a little less manual and less error-prone.

For this I wrote an enhancement request beginning of September:
I'm realy missing this and it should be implemented urgently! This should be a pre-configured query!

I wish IBM would decide to review all query enhancement requests and do a major update to the query engine. It needs it. I am subscribed to six myself (including yours) and there are likely many more.