TicketQuery - "or"-type filtering with multiple fields
|Reported by:||anonymous||Owned by:|
I want to make a TicketQuery that checks for the same term in multiple fields, e.g.
and returns any tickets that match in either.
If I write
the query returns only tickets that have the search term in both the fields listed. This is frequently the desired behaviour, but not in my use case; I would like the TicketQuery to return tickets containing 'foo' in either field.
I tried this but it failed with a syntax error from the macro:
which I expected. Also such a notation won't work if you want 'or' queries for different terms, e.g. with
Perhaps it's just something I'm missing in the documentation, if you can point that out I'm happy to go fix that.
Change History (8)
comment:1 by , 11 years ago
|Summary:||TracQuery - "or"-type filtering with multiple fields → TicketQuery - "or"-type filtering with multiple fields|