Share via


WorkItemType Complex Type (Work Item Type Definition Schema)

Defines a work item type.

<xs:complexType name="WorkItemType">
    <xs:sequence>
        <xs:element name="DESCRIPTION" type="typelib:NonEmptyLargeText" minOccurs="0"/>
        <xs:element name="GLOBALLISTS" type="typelib:GlobalListsDef" minOccurs="0"/>
        <xs:element name="FIELDS" type="FieldDefinitions"/>
        <xs:element name="WORKFLOW" type="Workflow"/>
        <xs:element name="FORM" type="Form"/>
    </xs:sequence>
    <xs:attribute name="name" type="typelib:NonEmptyPlainConstant" use="required"/>
</xs:complexType>

Attributes and Elements

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

Attributes

Attribute

Description

name

Required attribute.

Specifies the name of the work item type. The attribute type is typelib:NonEmptyPlainConstant. Minimum length: 1; maximum length: 255.

Pattern value: ^[^\\]*$

Pattern value example: Task

Child Elements

Element

Description

DESCRIPTION Element (Work Item Type Definition Schema)

Optional element.

Describes the work item type.

GLOBALLISTS Element (Work Item Type Definition Schema)

Optional element.

Contains the global list definition.

FIELDS Element (WORKITEMTYPE Element)

Required element.

Contains the definitions of the fields that belong to this work item type.

WORKFLOW Element (Work Item Type Definition Schema)

Required element.

Contains a STATES element and a TRANSITIONS element that together define the workflow of the work item type.

FORM Element (Work Item Type Definition Schema)

Required element.

Contains the Layout element that defines how the elements on the work item type form are displayed.

Parent Elements

None

Remarks

WorkItemType is the WORKITEMTYPE Element (Work Item Type Definition Schema) type.

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

Concepts

Designing the Workflow

Other Resources

Work Item Type Definition Schema

Customizing Work Item Types

Defining Work Item Workflow