Udostępnij za pośrednictwem


FieldRule Complex Type (Work Item Type Definition Schema)

Defines attributes for use by the NOTSAMEAS Element.

<xs:complexType name="FieldRule">
    <xs:complexContent>
        <xs:extension base="PlainRule">
            <xs:attribute name="field" type="typelib:ReferenceFieldName" use="required"/>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

Attributes and Elements

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

Attributes

Attribute

Description

for

Optional PlainRule Complex Type (Work Item Type Definition Schema) attribute.

The name of a user or group to whom this rule applies. The attribute type is typelib:IdentityName. Minimum length: 1; maximum length: 255.

Pattern value: ^[^\\]+\\[^\\]+$

Pattern value example: Domain\userID

not

Optional PlainRule Complex Type (Work Item Type Definition Schema) attribute.

The name of a user or group to whom this rule does not apply. The attribute type is typelib:IdentityName. Minimum length: 1; maximum length: 255.

Pattern value: ^[^\\]+\\[^\\]+$

Pattern value example: Domain\userID

field

Required attribute.

The reference name of the field where the rule is applied. The reference name must match the reference name defined in the field definition's FIELD element. The attribute type is typelib:ReferenceFieldName. Minimum length: 1; maximum length: 70.

Pattern value: ^[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z0-9_])+$

Pattern value example: Company.Division.IssueType

Child Elements

None

Parent Elements

None

Remarks

The FieldRule Complex Type is the element type for the NOTSAMEAS Element (Work Item Type Definition Schema). It is an extension of the PlainRule Complex Type (Work Item Type Definition Schema).

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

Concepts

Available Field Rules

Other Resources

Defining Field Rules