Help with search query

I'm trying to find issues that are assigned and either don't have a value for the Verified field or have been updated in the last couple of weeks. Something like this:

    (has -Verified OR updated in last two weeks) and has Assignee

I first tried this:

    has:-verified or updated:{this week},{last week} has:Assignee

but didn't work. So, I thought I'd try explicitly grouping my terms using parentheses:

    (has:-verified or updated:{this week},{last week}) has:Assignee

Also not right. The UI even suggests that the '(has:-verified' part is used as a text search term, since it doesn't get underlined. That said, YouTrack shows a "Did you mean..." box on the results page, with the only difference being an added space before the closing parentheses; the variant runs fine but doesn't change the results. The docs don't mention parentheses, so I'm not sure if they're supported.

Finally, I tried this:

    has:Assignee has:-verified or updated:{this week},{last week}

which is the same as my first query, but moves the Assignee term to the beginning. This produces yet another list, but still not right.

So, what's the correct way to do this?
1 comment
Comment actions Permalink
Hello Bob,

Sorry for not responding earlier.

Field cannot be without value. Even it's not set directly by user, it has either Default value or Empty value.
So, I assume your query will work correctly if looks like:
has: Assignee Verified by: Nobody or updated: {This week} , {Last week}
You can search by "Verfied by" or "Verified in build". And in your case, if you would like to filter all issues that are not verified, then empty or default values should be like Nobody or {Not verfied}.

Thank you.

Please sign in to leave a comment.