It's all about the answers!

Ask a question

Specifying NOT in Quick Query Syntax

John Owen (462422) | asked Nov 11 '14, 11:11 a.m.
The online help describes the quick query syntax for taskboard filtering in planning:

One option is to specify a task with a given state, e.g. state:Blocked

Does the query syntax support NOT? e.g. state:¬Blocked would evaluate to all states except "Blocked"

Does the query syntax support lists? e.g. state:Blocked,Paused would evaluate to all in either "Blocked" or "Paused" state.

Thanks in advance.

Accepted answer

permanent link
Ralph Schoon (63.2k33646) | answered Nov 11 '14, 11:37 a.m.
John, in said help description, ! is shown as negation.

In addition it states:

attribute:value attribute:value Matches work items if both expressions have different attributes and return true. If you use two of the same attributes, the work item that matches the value of the first attribute is colorized or filtered.

So you can use not on attributes, if you have two times the same attribute, only the first one seems to be evaluated.
John Owen selected this answer as the correct answer

John Owen commented Nov 11 '14, 6:20 p.m.

Thanks Ralph.  I missed the not ! symbol in help text so appreciate you pointing that out.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.