FieldType Simple Type (Work Item Type Definition Schema)

Defines the available data types that may be used in a work item field definition.

<xs:simpleType name="FieldType">
    <xs:restriction base="xs:string">
        <xs:enumeration value="String"/>
        <xs:enumeration value="Integer"/>
        <xs:enumeration value="Double"/>
        <xs:enumeration value="DateTime"/>
        <xs:enumeration value="PlainText"/>
        <xs:enumeration value="HTML"/>
        <xs:enumeration value="TreePath"/>
        <xs:enumeration value="History"/>
    </xs:restriction>
</xs:simpleType>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child Elements

None

Parent Elements

None

Remarks

The FieldType Simple Type defines the type attribute in the FieldDefinition Complex Type (WORKITEMTYPE Element).

Enumeration Values

The FieldType Simple Type is a string restricted to the following values:

Value

Description

String

Defines the field as containing a string of up to 255 Unicode characters.

Integer

Defines the field as containing a 32-bit signed integer.

Double

Defines the field as containing a double-precision, floating-point number.

DateTime

Defines the field as containing a date and time.

PlainText

Defines the field as containing text. Fields of PlainText type accommodate longer text descriptions than fields of String type.

HTML

Defines the field as containing rich text or links stored as HTML.

TreePath

Defines the field as one that displays a path for classification of the work item.

History

Defines the field as one that accommodates discussion information and records changes to the work item fields, ordered by date and time.

Element Information

Namespace

https://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef

Schema Name

Work Item Type Definition

Validation File

WorkItemTypeDefinition.xsd

Can be Empty

Not applicable

See Also

Reference

witfields

Other Resources

Defining Work Item Type Fields