How to query nested Current plans?
I have a similar nested iterations scenario as Question 27273. It looks like:
+TimelineAlpha
+--Iteration1
+----Iteration2
+------Iteration3
Iteration 1 is just for grouping. I have Plans in Iteration2 and Iteration3. Both of these Plans are marked as having a release scheduled. If I set Iteration3 as "Current", then Iteration1 and Iteration2 also get the "Current" pointer due to their lineage.
The Advanced User's Guide to Querying Work Items in Rational Team Concert says when the Planned For variable is set to Current Iteration it means "Starting at all leaf iterations that are set as current in the project area, the Current Iteration variable selects the first ones that have the release scheduled flag set when going up the hierarchy. This corresponds to the iterations that are shown as current in the Work Item Editor."
I interpret that to match the Plan in the Current Iteration and ALL plans up the Iteration ancestry which have the Release Scheduled flag set. But that's not what happens. Only the lowest leaf on the "Current" lineage is matched.
Question 23751 requests a feature to explicitly request the ancestry of the "Current Iteration", but isn't that implied above?
It's interesting that if you chose a specific Iteration in the Planned For query box, you can set the condition to "is part of" which will include the targeted iteration and everything below it.
Bottom line: How do I target ALL of the nested plans/iterations in the "Current" lineage?
+TimelineAlpha
+--Iteration1
+----Iteration2
+------Iteration3
Iteration 1 is just for grouping. I have Plans in Iteration2 and Iteration3. Both of these Plans are marked as having a release scheduled. If I set Iteration3 as "Current", then Iteration1 and Iteration2 also get the "Current" pointer due to their lineage.
The Advanced User's Guide to Querying Work Items in Rational Team Concert says when the Planned For variable is set to Current Iteration it means "Starting at all leaf iterations that are set as current in the project area, the Current Iteration variable selects the first ones that have the release scheduled flag set when going up the hierarchy. This corresponds to the iterations that are shown as current in the Work Item Editor."
I interpret that to match the Plan in the Current Iteration and ALL plans up the Iteration ancestry which have the Release Scheduled flag set. But that's not what happens. Only the lowest leaf on the "Current" lineage is matched.
Question 23751 requests a feature to explicitly request the ancestry of the "Current Iteration", but isn't that implied above?
It's interesting that if you chose a specific Iteration in the Planned For query box, you can set the condition to "is part of" which will include the targeted iteration and everything below it.
Bottom line: How do I target ALL of the nested plans/iterations in the "Current" lineage?
2 answers
If you set the iteration of a plan to the top level Iteration 1, it should show all items for all nested iterations. The same applies if you select the top level project/team are as owner.
Plans hide execution items, so you have to explicitly configure it to show them in the plan details.
As far as I can tell Question 23751 talks about the work item queries and not plans.
If this does not answer your question, I might be missing something and would need more information or a different explanation of your question.
Plans hide execution items, so you have to explicitly configure it to show them in the plan details.
As far as I can tell Question 23751 talks about the work item queries and not plans.
If this does not answer your question, I might be missing something and would need more information or a different explanation of your question.
Comments
Here's a more complete diagram:
-
TimelineAlpha
- Iteration1
- Iteration2
- Plan2
- Iteration3
-
Plan3
If I look in the Team Artifacts list under Plans>Current Plans, I will see both Plan2 and Plan3 (as expected).
However, If I create a work item query with Type:Story AND Planned For:Current Iteration, then I will ONLY see the stories from Plan3.
If I set the Planned For clause to the static location of Plan2, then I can use the is and is part of setting to return either just Plan2 or Plan2+Plan3, respectively.
My questions are:
- Why are only stories from Plan3 returned when Planned For is set to Current Iteration?
-
How can I include items from both Plan2 and Plan3 without using a static value in Planned For?
Clearly the 'Query' for iteration doesn't use the hierarchy.
Plan uses a different set of code to collect the included workitems.
So shall I conclude from three months of silence that there's currently no way to query UP a hierarchy of dynamic Current pointers? I'd be very surprised if I'm the only RTC user that's is trying or has ever tried to do this.
Hello Barry:
A RFE we submitted based on your following request is now accepted and is a part of the Product Backlog for RTC.
RFE link : http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=31960 .
This is Related to Work Item : Enhancement: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=228834
A RFE we submitted based on your following request is now accepted and is a part of the Product Backlog for RTC.
RFE link : http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=31960 .
This is Related to Work Item : Enhancement: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=228834