Geeks With Blogs
I [heart] code! .NET musings from the chick side

I spent some time playing with the security and Work Item Templates in TFS in an attempt to figure out how the "Assign To:" property works.

The Work Item Template allows you to edit the Suggested Values property of this field. Here is what I found:

      <FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension">
    <SUGGESTEDVALUES>
         <LISTITEM value="[Project ]\Contributors" />
    </SUGGESTEDVALUES>
    </FIELD>

Displays in the dropdown:

All users in the Contributors Group

All Team Project Groups in the Contributors Group

All Windows Active Directory Groups in the Contributors Group

The "Contributors" Team Project Group

      <FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension">
    <SUGGESTEDVALUES>
         <LISTITEM value="Contributors" />
    </SUGGESTEDVALUES>
    </FIELD>

Displays in the dropdown:

The "Contributors" Group

However, this is what I found when working with the "Assigned To" field:

(Steve is a Contributor in my Team Project and is part of the windows AD Group "MyProjectContributors" )

I create 3 tasks:

Task 1: "Steve"

Task 2: "Contributors" Team Project Group

Task 3: "MyProjectContributors"  Windows AD Group.

In summary, Task 1 is assigned to Steve, Task 2 is assigned to the Team System Team Project group that Steve is a member of, and Task 3 is assigned to the Windows AD group that Steve is a member of.

 

I then logged into Windows as Steve and connected to MyProject.

When I ran the "Work Items - All Querys - All Work Items" query I saw my three new tasks.

When I ran the "Work Items - All Querys - My Work Items" query I saw only Task 1 - the task assigned explicitly to Steve.

Posted on Friday, May 23, 2008 11:43 AM | Back to top


Comments on this post: Work Item Assignments in TFS Team System 2008

# re: Work Item Assignments in TFS Team System 2008
Requesting Gravatar...
The WIQL in My Work Items operates as expected, since it uses exact equality with Assigned To field (AssignedTo == @Me); thus that should not be a surprise.

What you see is the downside of somewaht exotic usage of Assigned To - probably the best practice is always setting it to the individual account.
Left by Eugenez on Aug 09, 2008 11:53 PM

# re: Work Item Assignments in TFS Team System 2008
Requesting Gravatar...
I did the same thing. I am not really happy with it either since I would like to view the progress of the team in accomplishing their tasks, hence I would like to create a query/report that shows tasks for everyone in a particular group.
Left by Jeremy on Nov 11, 2008 4:04 PM

Your comment:
 (will show your gravatar)


Copyright © Kirstin Juhl | Powered by: GeeksWithBlogs.net