Share via


FIELDS Element (WORKFLOW)

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

<xs:element name="FIELDS" type="FieldReferences" minOccurs="0"/>

<FIELDS>
    <FIELD> . . . </FIELD>
</FIELDS>

Attributes and Elements

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

Attributes

None

Child Elements

Element

Description

FIELD Element (WORKFLOW)

Required element.

References a work item field definition and the rules and conditions that apply to the field. The reference is based on the STATE, TRANSITION, DEFAULTREASON, or REASON element that its parent FIELDS element is a child of.

Parent 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.

TRANSITION Element (Work Item Type Definition Schema)

Required element.

Defines a valid state transition for the work item type.

DEFAULTREASON Element (Work Item Type Definition Schema)

Required element.

Defines the default reason for the occurrence of a state transition.

REASON Element (Work Item Type Definition Schema)

Optional element.

Defines other reasons for the occurrence of a state transition.

Remarks

FIELDS is an optional child element of STATE, TRANSITION, DEFAULTREASON, and REASON.

minOccurs="0"

maxOccurs="1"

Element Information

Namespace

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

Schema Name

Work Item Type Definition

Validation File

WorkItemTypeDefinition.xsd

Element Type

FieldReferences Complex Type (Work Item Type Definition Schema)

Can Be Empty

No

See Also

Concepts

Customizing Project Tracking Data, Forms, Workflow, and Other Objects

Other Resources

Customizing and Using Work Item Fields