Work Item question

I'm in the process of working with work items. I've been using the 'Authoring Work Items Type' document to make some changes, but the documentation does not seem to be complete. I would like more information on field elements within the work item schema. I've also looked online, but a lot of the content still seems to be incomplete. Is there a place someone can guide me to?

thanks,
aaron

[401 byte] By [AaronJ] at [2007-12-16]
# 1
Hi Aaron,

The "Authoring Work Item Types.doc" document in the extensibility tool kit has the most information about how to author workitemtype definitions. Are you looking for more of a walkthrough/screenshots?
If you have a specific question about field elements, can you please post the question?

Thanks.
-Mareen.

MareenPhilip. at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
Thanks for the quick reply. I was actually able to find the answer. I was using the System.AssignedTo when creating a new work item, but I wanted to default to a specific user. I didn't realize I could change the field <DEFAULT> within the Transition.
AaronJ at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3

You should add something like that to your transition:

<TRANSITION from="State 1" to="State 2">
....
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>

(DEFAULT rule will set field's value only if it was empty; COPY will work in all cases).

AliakseiBaturytski at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
Thanks for the info. Actually I set it up this way. I didn't want to use the current user. I wanted to default to a specific user.

<TRANSITION from="" to="Open">
...

<FIELDS>
<FIELD refname="System.AssignedTo">
<DEFAULT from="value" value="aaron"/>
</FIELD>
<FIELDS/>
AaronJ at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5

User names are stored internally in the form of domain\user, so try the following:

<DEFAULT from="value" value="domain\aaron" />,

replacing "domain" with the actual domain name. Please note that the user must be known to the sustem - i.e. registered on the team foundation server.

AliakseiBaturytski at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified