TicketQuery Wiki Macro
The query language used by the [[TicketQuery]] macro is described in TracQuery page.
Usage
[[TicketQuery]]Macro that lists tickets that match certain criteria.
This macro accepts a comma-separated list of keyed parameters, in the form "key=value".
If the key is the name of a field, the value must use the same syntax as for query: wiki links (but not the variant syntax starting with "?").
The optional format parameter determines how the list of tickets is presented:
- list -- the default presentation is to list the ticket ID next to the summary, with each ticket on a separate line.
- compact -- the tickets are presented as a comma-separated list of ticket IDs.
- count -- only the count of matching tickets is displayed
- table -- a view similar to the custom query view (but without the controls)
The optional max parameter can be used to limit the number of tickets shown (defaults to 0, i.e. no maximum).
The optional order parameter sets the field used for ordering tickets (defaults to id).
The optional group parameter sets the field used for grouping tickets (defaults to not being set).
The optional groupdesc parameter indicates whether the natural display order of the groups should be reversed (defaults to false).
The optional verbose parameter can be set to a true value in order to get the description for the listed tickets. For table format only. deprecated in favor of the row parameter, which can be used to specify which field should be viewed as a row, e.g. row=description.
For compatibility with Trac 0.10, if there's a second positional parameter given to the macro, it will be used to specify the format. Also, using "&" as a field separator still works but is deprecated.
Example
- Number of Triage tickets: 120
- Number of new tickets: 727
- Number of reopened tickets: 102
- Number of assigned tickets: 71
- Number of invalid tickets: 1111
- Number of worksforme tickets: 842
- Number of duplicate tickets: 1373
- Number of wontfix tickets: 521
- Number of fixed tickets: 2153
- Total number of tickets in Trac is 6900
See also: TracQuery, TracTickets, TracReports, TracGuide
