In Rally, I was trying to query for a items in the tree that contained the word “Feature”. I tried querying for (Parent.Parent.Parent.Parent.Parent.Name contains “Feature”) etc by checking whether any of the parent names have the word “Feature” in them. My approach does not work. Is there a better way to do this? Thanks.
Share
As Charles notes, it isn’t possible to traverse a parent hierarchy via a single Rally Query. Ultimately, it will be possible to pull an entire hierarchy and filter on naming and other criteria using the (currently alpha) Lookback API and queries similar to that described in this article:
Lookback API: Find all leaf node stories under a known parent
Until then, you can traverse the hierarchy of parents using the AppSDK and recursive calls to the find() method of rallyDataSource. I’ve included a simple that does this:
It traverses a Story Hierarchy that looks like this:
And filters for stories containing “Parent” in the Story Name, producing the following output:
Understood the sample is a rough cut and not very pretty, not as elegant or easy as a single query, but it illustrates how to traverse the tree and filter for the results you are looking for.