Share via


Reason Complex Type (Work Item Type Definition Schema)

Defines the value attribute and the FIELDS Element for the REASON Element.

<xs:complexType name="Reason">
    <xs:sequence>
        <xs:element name="FIELDS" type="FieldReferences" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="value" type="typelib:NonEmptyPlainConstant" use="required"/>
</xs:complexType>

Attributes and Elements

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

Attributes

Attribute

Description

value

Required attribute.

The value of the default reason for the transition (for example, Fixed). The attribute type is typelib:NonEmptyPlainConstant. Minimum length: 1; maximum length: 255.

Pattern value: ^[^\\]*$

Pattern value example: Test Passed

Child Elements

Element

Description

FIELDS Element (WORKFLOW)

Optional element.

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

Parent Elements

None

Remarks

The Reason Complex Type is the REASON 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

Other Resources

Defining and Customizing Work Item Workflow