Conditions Group (Work Item Type Definition Schema)

Specifies conditions for the FIELD element.

<xs:group name="Conditions">
    <xs:choice>
        <xs:element name="WHEN" type="FieldValueCondition"/>
        <xs:element name="WHENNOT" type="FieldValueCondition"/>
        <xs:element name="WHENCHANGED" type="FieldCondition"/>
        <xs:element name="WHENNOTCHANGED" type="FieldCondition"/>
    </xs:choice>
</xs:group>

Attributes and Elements

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

Attributes

None

Child Elements

Element

Description

WHEN Element (Work Item Type Definition Schema)

Optional element.

Specifies one or more rules to apply to the current field when another field has a specific value.

WHENNOT Element (Work Item Type Definition Schema)

Optional element.

Applies one or more rules to the current field when another field does not have a specific value.

WHENCHANGED Element (Work Item Type Definition Schema)

Optional element.

Applies one or more rules to the current field when a specific field's value is changed.

WHENNOTCHANGED Element (Work Item Type Definition Schema)

Optional element.

Applies one or more rules to the current field when a specific field's value is not changed.

Parent Elements

None

Remarks

The Conditions Group represents a choice. You can define a selection of conditions for FIELD.

minOccurs: 1

maxOccurs: 1

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

Field Conditions

Work Item Type Definition Schema