Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

QueryBuilder: how to build a query that checks for the value of an attribute of all of the children

I am trying to build a query that looks at a specific attribute in all of the children.  For example:

Query all "Story" work items that does not have at least one child work item that contains a certain string in the summary.  For example, if we preface our documentation work with "ID:" in the summary, we are looking for Stories that are missing a child task to update the documentation.

I've tried Type is Story & Children>Summary does not contain ID:
but that seems to show me those where EVERY child summary does not contain ID:, not a story that doesn't contain ANY child summary with ID:

Thanks
Susan

1 vote



2 answers

Permanent link
I don't believe that is possible today. I have tried to do questions such as "For All children(State=closed)" but I was not very successful.I don't think the query engine today has this kind of operator. I think the queries I came up with always returned elements that had at least one child that was qualified for the condition.

Guido has filed this enhancement request: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=229817

There are several more you probably want to add your interest.

1 vote

Comments

Thanks, I"ve added myself as a subscriber.

please add a comment that you struggle with the same issues, to give it more attention.


Permanent link
If I understood your concern correctly, you probably have to add another condition like "AND Children>Type is Story" to get only Child Stories listed in the result.

0 votes

Comments

my child type's are Tasks, but adding and Children>Type = Task doesn't help.  It basically brings back every story because every story has at least 1 task that is NOT an ID task, and I want it to bring me stories that have child tasks but that doesn't have at least one child.

For example:
Story 1
    Task 1  Summary = Update this
    Task2   Summary = Update that
     Task 3 Summary = ID: doc it all

So this Story 1 has 3 children and 1 of them says "ID:"
but if I have Story 2 that only has Task 1 and Task 2, then I have a story that has children and at least 1 child does NOT have ID: in the summary.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,095

Question asked: Jul 14 '13, 9:57 p.m.

Question was seen: 5,720 times

Last updated: Jul 15 '13, 4:17 a.m.

Confirmation Cancel Confirm