Team Explorer - My Work - Available Work Items is broken in Update 1 CTP 4 - by Dennis Wanke

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 771660 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 11/19/2012 3:56:08 PM
Access Restriction Public

Description

The query behind the „Available Work Items“ section under Team Explorer - My Work has been changed in Update 1 (as for CTP 4).

The difference is in how AreaPath is filtered. In VS 2012 RTM the AreaPath is filtered using the operator “UNDER” with the default project area  as its right argument. This worked perfectly. In Update 1 CTP 4 the simple equality operator is used instead, hiding all the work items which areas are included as sub-areas under the default (root) project area (just ordinary hierarchical areas, like MyProject/Module1 and MyProject/Module2). 
This issue makes „Available Work Items“ almost useless since work items are rarely assigned directly to the default project area.

If this change was made intentionally, there should be at least a setting to choose which option to use.

The issue is reproduced using when connecting to the same Team Foundation Server 2012 RTM instance (installed locally, with Update 1 CTP NOT applied).


The “Available Work Items” query in VS 2012 RTM (as seen by clicking on “Open Query”):

<WorkItemQuery Version="1">
 <TeamProject>MyProject</TeamProject>
 <Wiql>
  SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State] FROM WorkItems 
  WHERE [System.AssignedTo] = @me  AND  [System.TeamProject] = @project  
  AND (( [System.WorkItemType] IN GROUP 'Microsoft.BugCategory'  AND  [System.State] = 'Active' ) OR ( [System.WorkItemType] IN GROUP 'Microsoft.TaskCategory'  
  AND ( [System.State] = 'New'  OR  [System.State] = 'Active' ))) AND  [System.AreaPath] UNDER 'MyProject' 
  ORDER BY [System.WorkItemType], [System.Title] 
 </Wiql>
</WorkItemQuery>


The same query in Update 1 CTP 4:

<WorkItemQuery Version="1">
 <TeamProject>MyProject</TeamProject>
 <Wiql>
  SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State] FROM WorkItems 
  WHERE [System.AssignedTo] = @me  AND  [System.TeamProject] = @project  
  AND (( [System.WorkItemType] IN GROUP 'Microsoft.BugCategory'  AND  [System.State] = 'Active' ) OR ( [System.WorkItemType] IN GROUP 'Microsoft.TaskCategory'  
  AND ( [System.State] = 'New'  OR  [System.State] = 'Active' ))) AND  [System.AreaPath] = 'MyProject' 
  ORDER BY [System.WorkItemType], [System.Title] 
 </Wiql>
</WorkItemQuery>
Sign in to post a comment.
Posted by ElegantCoder on 11/20/2012 at 8:41 AM
This issue has been fixed in the final release of Update 1. Good catch, thank you.
Posted by Macy [MSFT] on 11/19/2012 at 4:53 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)