diff options
author | Ivan Habunek <ivan@habunek.com> | 2021-09-13 20:20:41 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2021-09-14 12:41:14 +0200 |
commit | e428716afc4f346f389299f48a04bff0f5952b9f (patch) | |
tree | 2b97da97bf426423c26c8616f29af9a9e2c65da6 /todo.sr.ht/index.md | |
parent | d4cc40f9eae4e19fca7303c39b68ad85cc284bdf (diff) | |
download | sr.ht-docs-e428716afc4f346f389299f48a04bff0f5952b9f.tar.gz |
todo.sr.ht: Document sorting
Diffstat (limited to 'todo.sr.ht/index.md')
-rw-r--r-- | todo.sr.ht/index.md | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/todo.sr.ht/index.md b/todo.sr.ht/index.md index 2ba29c7..e781488 100644 --- a/todo.sr.ht/index.md +++ b/todo.sr.ht/index.md @@ -32,14 +32,37 @@ include: - `status:open` or `status:closed` - `label`: an optional label that is assigned to a ticket for organizational purposes -- `order`: the order in which tickets are displayed. By default this is by - time of last update - `submitter`: the user who submitted the ticket. Use `me` to find tickets submitted by yourself - `assigned`: tickets that are assigned to a particular user - `no:assignee`: tickets not assigned to anyone - `no:label`: tickets with no labels +Use the negation prefix `!` to inverse any filter. For example: + +- `!assigned:me`: tickets which are not assigned to me +- `!no:label`: tickets which have at least one label applied + +## Sorting tickets + +By default, tickets are sorted by most recently updated. To change the sort +order, enter one of: + +- `sort:created` - sort by creation time +- `sort:updated` - sort by last updated time +- `sort:comments` - sort by the number of comments + +Sort direction is descending by default and can be reversed by using `rsort` +instead of `sort`: + +- `sort:updated` - sort descending +- `rsort:updated` - sort ascending + +It's possible to specify multiple sorting criteria: + +- `sort:comments sort:created` - sort first by number of comments, then by + creation time + # Tickets Each ticket has its own page and number. On the ticket page, you can comment |