PatternRule Complex Type (Work Item Type Definition Schema)
Defines attributes for use by the MATCH Element.
<xs:complexType name="PatternRule">
<xs:complexContent>
<xs:extension base="PlainRule">
<xs:attribute name="pattern" type="typelib:NonEmptyPlainConstant" 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 |
pattern |
Required attribute. Enforces basic pattern matching for strings only. Valid values are "A," "N," or "X." All other values are taken as literals. "A" represents an alphabetical character. "N" represents a numeric character. "X" represents any alphanumeric character. The attribute type is typelib:NonEmptyPlainConstant. Minimum length: 1; maximum length: 255. Pattern value: ^[^\\]*$ Pattern value example: xxxxx.nn.nn |
Child Elements
None
Parent Elements
None
Remarks
The PatternRule Complex Type is the MATCH Element (Work Item Type Definition Schema) type. 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 |