Custom FieldControl values

Hi,
I am creating custom work item, in fields with type of FiledControl I would like to specify some allowed values. For example MyFileds.MyStatus

<FIELDname="MyStatus"refname="MyFileds.MyStatus"type="String"reportable="dimension">
<
HELPTEXT>The status of the MyCustomWI.</HELPTEXT>
<
REQUIRED/>
<
ALLOWEDVALUES>
<
LISTITEMvalue="1 - Ready"/>
<
LISTITEMvalue="2 - In progress"/>
<
LISTITEMvalue="3 - Done"/>
</
ALLOWEDVALUES>
</
FIELD>

If for some reasons I would like to add some extra item "4 - some state" I have to upload WI definition using WITimport. Is there other way to add allowed values?
Can I make a custom type like Sysytem.State and data will be pulled automatically?
In field SystemState values are predefined behind the xml definition.
<FIELDname="State"refname="System.State"type="String">
<
HELPTEXT>The workflow state of the scenario</HELPTEXT>
</
FIELD>

Just want to know if there is other way to add values into listitem

Thanks,
Tomast

[4465 byte] By [Tomast] at [2008-2-20]
# 1

Editing the work item type is the only way of modifying the list of allowed values. This can be done either manually (export -> edit -> import) or programmatically using the object model (WorkItemType.Export, WorkItemTypeCollection.Import methods) - those are the methods witimport and witexport call.

Thanks,

Alex

Visual Studio Team System

Site Classified