Query operator | Returns work items if the value in the work item matches the criteria listed | Applicable field types |
|---|
= | Matches the value in the clause. | Number, Text, Date, Tree |
<> | Does not match the value in the clause. | Number, Text, Date, Tree |
> | Is larger than the value in the clause. | Number, Text, Date |
< | Is less than the value in the clause | Number, Text, Date |
>= | Is larger than or equal to the value in the clause. | Number, Text, Date |
<= | Is less than or equal to the value in the clause. | Number, Text, Date |
=[Field] | Matches the value that is contained in the specified field | Name of a field that is of the same data type as the specified field |
<>[Field] | Does not match the value that is contained in the specified field | Name of a field that is of the same data type as the specified field |
>[Field] | Is larger than the value that is contained in the specified field | Name of a field that is of the same data type as the specified field |
<[Field] | Is less than the value that is contained in the specified field | Name of a field that is of the same data type as the specified field |
>=[Field] | Is larger than or equal to the value that is contained in the specified field | Name of a field that is of the same data type as the specified field |
<=[Field] | Is less than or equal to the value that is contained in the specified field | Name of a field that is of the same data type as the specified field |
Contains | Contains the text value in the clause. | Text |
Does Not Contain | Does not contain the text value in the clause. | Text |
In | Matches any value in a comma-delimited set. For example, you can find work items whose IDs are 100, 101, and 102 if you specify those values for the ID field. | Number, Text, Date, Tree |
In Group | Matches a value that is a member of the group in the clause. For example, you can specify a distribution list for the Assigned To field in a query, and all work items that are assigned to a member of that distribution list are found. | String or the name of a category group NoteYou can only use the In Group operator with fields that use the String data type or the Work Item Type field. For information about category groups, see Grouping Work Item Types into Categories. |
Not in Group | Does not match a value that is a member to the group in the clause. You can only use the Not in Group operator with fields that use the Identity data type or the Work Item Type field. | String or the name of a category group NoteYou can only use the Not In Group operator with fields that use the String data type or the Work Item Type field. For information about category groups, see Grouping Work Item Types into Categories. |
Was Ever | Matches the value in the clause at any previous point. | Text, Date |
Under | Matches the value in the clause or is contained under the node in the clause. | Tree |
Not Under | Does not match the value in the clause and is not contained under the node in the clause. | Tree |