Share via


STATES Element (Work Item Type Definition Schema)

Specifies a collection of STATE elements that define the valid states that the work item type can be in.

Schema Hierarchy

WITD Element (Work Item Type Definition Schema)

    WORKITEMTYPE Element (Work Item Type Definition Schema)

        WORKFLOW Element (Work Item Type Definition Schema)

            STATES Element (Work Item Type Definition Schema)

<xs:element name="STATES" type="States"/>

Attributes and Elements

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

Attributes

None

Child Elements

Element

Description

STATE Element (Work Item Type Definition Schema)

Required element.

Defines a valid state for the work item type and contains a FIELDS element that defines the field values for the state.

Parent Elements

Element

Description

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.

Remarks

STATES is a required child element of WORKFLOW.

minOccurs="1"

maxOccurs="1"

Example

<STATES>
    <STATE>…</STATE>
</STATES>

Element Information

Namespace

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

Schema Name

Work Item Type Definition

Validation File

WorkItemTypeDefinition.xsd

Element Type

States Complex Type (Work Item Type Definition Schema)

Can Be Empty

No

See Also

Other Resources

Defining and Customizing Work Item Workflow