E-mail me for Defect events when the Defect Project field = "Visual Studio," "Word," or "Excel."
E-mail me for Check-in events when the Check-in Files field is Under "\dd\project1" OR the Files field is Under "\dd\project1."
E-mail me for Defect events when the Defect Owner field = "user1" AND the Status field <> "Resolved."
Event subtypes
TFS supports event subtypes that contain any number of simple fields.
Events subtypes can have sequences and other complex types. You can use XPath notation to reference fields such as "myObject/myfield." Referencing a sequence in an expression causes a match if one or more of the objects in the sequence match. You can also use XPath functions to query the document.
Fields must be enclosed in quotation marks ("), or a "Syntax Error in Exception" error will be caused.
Operators
For each field, the subscriber can select to filter by using one of the predicates in the following table.
| Predicate | Applies to Fields of Type |
| = (equals) | String, Int, Date |
| < (less than) | Int, Date |
| <= | Int, Date |
| > (greater than) | Int, Date |
| >= | Int, Date |
| Under (Quickly match file specs) | String |
| Match (Regular Expression Match) | String |
Equals can apply to a single value or to a range of values. You can combine less than or equal to and greater than or equal to select ranges of values.
Under and Match are special string matching conditions. Under is for the common case that you must match strings such as file paths that are hierarchical in nature. Match enables the subscriber to enter a regular expression that matches a given event string.
Combinations
You can combine filters with both and and or expressions. You can negate a condition with not.
The following example accepts only those events where the owner is "user1" and the file is in the eQA folder or a subfolder.
Owner equals "user1" and
Files under "\devdiv\vset\eQA"
You can use parentheses to form combinations of any arbitrary complexity. See the Advanced Filtering section for more details.