~sircmpwn/todo.sr.ht#199: 
Feature request: search/filter which does NOT contain a label

Sometimes I'd like to see tickets that aren't labelled in a certain way (eg to see all non-bug tickets, something like !label:Bug, or all tickets that haven't been reviewed: !label:Reviewed -- the exact syntax doesn't matter).

Status
RESOLVED FIXED
Submitter
~guywithknife
Assigned to
No-one
Submitted
4 years ago
Updated
3 years ago
Labels
No labels applied.

~guywithknife 4 years ago

Looking at the code https://git.sr.ht/~sircmpwn/todo.sr.ht/tree/master/todosrht/search.py#L49 a simple way to implement this would be to use syntax like label:!foo (ie put the negation as part of the label name), then check if the first character of value is the negation symbol and if it is, swap from TicketLabel.label == label to TicketLabel.label != label.

~ihabunek REPORTED FIXED 3 years ago

This has been implemented. The syntax is !label:foo. You can also use the ! prefix on other search queries, e.g. !assigned:me to get all tickets which are not assigned to you.

Register here or Log in to comment, or comment via email.