#7891 closed enhancement (worksforme)
TicketQuery macro: reverse ordering option?
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | |
Component: | wiki system | Version: | 0.11 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I wrote this line
[[TicketQuery(format=list,status!=closed,order=id, max=10)]]
to have the open tickets in a wiki page. Here is its output:
- #1
- Add a new project summary module.
- #31
- Bug dependencies/relations feature
- #38
- Wiki edit event collapsing
- #53
- plugin infrastructure for rendering diff HTML previews
- #65
- Purge old versions of wiki pages
- #108
- OrphanedPages macro
- #109
- MissingLinks, an index over missing wiki pages
- #150
- User-centric storage. Last-viewed information and 'intelligent' followup
- #217
- XML-RPC/SOAP/etc. interface
- #221
- Creating TR for multiple components
Actually, I would like to show the most recent tickets instead of the oldest ones. I'd like to have a chance to choose it, with say order=reverseid or better asc=0 / asc=1. Sorry if this has been already implemented.
Attachments (0)
Change History (2)
comment:1 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Excerpt from my local 0.11 WikiMacros file:
The max parameter can be used to limit the number of tickets shown (defaults to 0, i.e. no maximum).
The order parameter sets the field used for ordering tickets (defaults to id).
The group parameter sets the field used for grouping tickets (defaults to not being set).
The groupdesc parameter indicates whether the natural display order of the groups should be reversed (defaults to false).
In fact, my installation supports the desc parameter but it is not document. Great thing it is already implemented! Cheers
Marco
Have you actually read the WikiMacros documentation? Under
[[TicketQuery]]
it says that it supports bothorder
anddesc
. Recent 0.11.x additionally supports created and modified fields.Closing.