Share via


STATE Element (Work Item Type Definition Schema)

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

Schema Hierarchy

WORKITEMTYPE Element (Work Item Type Definition Schema)

    WORKFLOW Element (Work Item Type Definition Schema)

        STATES Element (Work Item Type Definition Schema)

            STATE Element (Work Item Type Definition Schema)

<STATE value="value of state">
    <FIELDS>…</FIELDS>
</STATE>

Attributes and Elements

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

Attributes

Attribute Description

value

Required State attribute.

The value of the state (for example, Active).

Child Elements

Element Description

FIELDS (Work Item Type Definition Schema)

Optional element.

Defines a collection of FIELD elements that reference the field definitions that are contained in the work item type.

Parent Elements

Element Description

STATES

Required element.

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

Remarks

STATE is a required child element of STATES.

minOccurs="1"

maxOccurs="unbounded"

Element Information

Namespace

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

Schema Name

Work Item Type Definition

Validation File

WorkItemTypeDefinition.xsd

Element Type

State

Can Be Empty

Yes

See Also

Reference

FIELDS Element (Work Item Type Definition Schema)

Other Resources

Defining Work Item Workflow