Share via


REASONS Element (Work Item Type Definition Schema)

A collection of DEFAULTREASON and REASON elements that define valid reasons the work item can complete the transition.

Schema Hierarchy

WITD Element (Work Item Type Definition Schema)

    WORKITEMTYPE Element (Work Item Type Definition Schema)

        WORKFLOW Element (Work Item Type Definition Schema)

            TRANSITIONS Element (Work Item Type Definition Schema)

                TRANSITION Element (Work Item Type Definition Schema)

                    REASONS Element (Work Item Type Definition Schema)

<xs:element name="REASONS" type="Reasons"/>

Attributes and Elements

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

Attributes

None

Child Elements

Element

Description

DEFAULTREASON Element (Work Item Type Definition Schema)

Required element.

Defines a default reason for the occurrence of the transition.

REASON Element (Work Item Type Definition Schema)

Optional element.

Defines an additional reason for the occurrence of the transition.

Parent Elements

Element

Description

TRANSITION Element (Work Item Type Definition Schema)

Required element.

Defines a valid state transition for the work item type.

Remarks

REASONS is a required child element of TRANSITION.

minOccurs="1"

maxOccurs="1"

Example

<REASONS>
    <DEFAULTREASON>…</DEFAULTREASON>
    <REASON>…</REASON>
</REASONS>

Element Information

Namespace

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

Schema Name

Work Item Type Definition

Validation File

WorkItemTypeDefinition.xsd

Element Type

Reasons Complex Type (Work Item Type Definition Schema)

Can Be Empty

No

See Also

Concepts

Designing the Workflow

Other Resources

Defining and Customizing Work Item Workflow