TicketQuery Wiki Macro

The TicketQuery macro lets you display ticket information anywhere that accepts WikiFormatting. The query language used by the [[TicketQuery]] macro is described in the TracQuery page.



Wiki macro listing 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 syntax of a filter specifier as defined in TracQuery#QueryLanguage. Note that this is not the same as the simplified URL syntax used for query: links starting with a ? character. Commas (,) can be included in field values by escaping them with a backslash (\).

Groups of field constraints to be OR-ed together can be separated by a literal or argument.

In addition to filters, several other named parameters can be used to control how the results are presented. All of them are optional.

The 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
  • rawcount -- only the count of matching tickets is displayed, not even with a link to the corresponding query (since 1.1.1)
  • table -- a view similar to the custom query view (but without the controls)
  • progress -- a view similar to the milestone progress bars

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 desc parameter indicates whether the order of the tickets should be reversed (defaults to false).

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).

The 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 rows parameter

The rows parameter can be used to specify which field(s) should be viewed as a row, e.g. rows=description|summary

The col parameter can be used to specify which fields should be viewed as columns. For table format only.

For compatibility with Trac 0.10, if there's a last positional parameter given to the macro, it will be used to specify the format. Also, using "&" as a field separator still works (except for order) but is deprecated.


Example Result Macro
Number of Triage tickets: 0 [[TicketQuery(status=new&milestone=,count)]]
Number of new tickets: 236 [[TicketQuery(status=new,count)]]
Number of reopened tickets: 11 [[TicketQuery(status=reopened,count)]]
Number of assigned tickets: 5 [[TicketQuery(status=assigned,count)]]
Number of invalid tickets: 251 [[TicketQuery(status=closed,resolution=invalid,count)]]
Number of worksforme tickets: 680 [[TicketQuery(status=closed,resolution=worksforme,count)]]
Number of duplicate tickets: 1155 [[TicketQuery(status=closed,resolution=duplicate,count)]]
Number of wontfix tickets: 683 [[TicketQuery(status=closed,resolution=wontfix,count)]]
Number of fixed tickets: 2820 [[TicketQuery(status=closed,resolution=fixed,count)]]
Number of untriaged tickets (milestone unset): 0 [[TicketQuery(status!=closed,milestone=,count)]]
Total number of tickets: 7834 [[TicketQuery(count)]]
Number of tickets reported or owned by current user: 39 [[TicketQuery(reporter=$USER,or,owner=$USER,count)]]
Number of tickets created this month: 1 [[TicketQuery(created=thismonth..,count)]]
Number of closed Firefox tickets: 20 [[TicketQuery(status=closed,keywords~=firefox,count)]]
Number of closed Opera tickets: 16 [[TicketQuery(status=closed,keywords~=opera,count)]]
Number of closed tickets affecting Firefox and Opera: 0 [[TicketQuery(status=closed,keywords~=firefox opera,count)]]
Number of closed tickets affecting Firefox or Opera: 36 [[TicketQuery(status=closed,keywords~=firefox|opera,count)]]
Number of tickets that affect Firefox or are closed and affect Opera: 37 [[TicketQuery(status=closed,keywords~=opera,or,keywords~=firefox,count)]]
Number of closed Firefox tickets that don't affect Opera: 0 [[TicketQuery(status=closed,keywords~=firefox -opera,count)]]
Last 3 modified tickets: #2000, #15389, #15112 [[TicketQuery(max=3,order=modified,desc=1,compact)]]

Details of ticket #1:


Ticket Owner Reporter
No tickets found

Format: list


This is displayed as:

No results


This is displayed as:

No results

Format: compact

[[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]]

This is displayed as:

No results

Format: count

[[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]]

This is displayed as:


Format: progress


This is displayed as:

Format: table

You can choose the columns displayed in the table format (format=table) using col=<field>. You can specify multiple fields and the order they are displayed by placing pipes (|) between the columns:


This is displayed as:

Full rows

In table format you can specify full rows using rows=<field>:


This is displayed as:

Results (1 - 3 of 7256)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#15378 duplicate Theme Roller is broken Darkwave18

Hello, sorry for my English, I am French. The themeroller is broken ...

It is impossible to download a theme.

When I look at the console of my browser it gives 502 errors like this:

GET https://download.jqueryui.com/themeroller/parsetheme.css?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fsDefault=1.1em&fwDefault=bold&cornerRadius=6px&bgColorHeader=deedf7&bgTextureHeader=highlight_soft&borderColorHeader=aed0ea&fcHeader=222222&iconColorHeader=72a7cf&bgColorContent= f2f5f7 & bgTextureContent = highlight_hard & borderColorContent = dddddd & fcContent = 362b36 & iconColorContent = 72a7cf & bgColorDefault = d7ebf9 & bgTextureDefault = glass & borderColorDefault = aed0ea & fcDefault = 2779aa & iconColorDefault = 3d80b3 & bgColorHover = e4f1fb & bgTextureHover = glass & borderColorHover = 74b2e2 & fcHover = 0070a3 & iconColorHover = 2694e8 & bgColorActive = 3baae3 & bgTextureActive = glass & borderColorActive = 2694e8 & fcActive = ffffff & iconColorActive = ffffff & bgColorHighlight = ffef8f & bgTextureHighlight = highlight_soft & borderColorHighlight = f9dd34 & fcHighlight = 363636 & iconColorHighlight = 2e83ff & bgColorError = cd0a0a & bgTextureError = flat & borderColorError = cd0a0a & fcError = ffffff & iconColorError = ffffff & bgColorOverlay = eeeeee & bgTextureOverlay = Diagonals_thick & bgImgOpacityOverlay = 90 & opacityOverlay = 80 & bgColorShadow = 000000 & bgTextureShadow = highlight_hard & bgImgOpacityShadow = 70 & opacityShadow = 30 & thicknessShadow = 7px & offsetTopShadow = -7px & offsetLeftShadow = -7px & cornerRadiusShadow = 8px & bgImgOpacityHeader = 100 & bgImgOpacityContent = 100 & bgImgOpacityDefault = 80 & bgImgOpacityHover = 100 & bgImgOpacityActive = 50 & bgImgOpacityHighlight = 25 & bgImgOpacityError = 15 net :: ERR_ABORTED 502
#15377 duplicate Can't Download JQUERY-UI - Bad gateway Mottusuchi

I Can't download Jquery-UI. It always shows Bad Gateway. I am trying to download from different computers for last 4 days... Please help... Bad gateway download.jqueryui.com Host Error

#15376 duplicate BAD GATEWAY when trying to download JQueryUI zzador

Today was a day I really needed an javascript dialog so I decided to download JQueryUI. However I get an "Error 502 Bad Gateway" regardless of what I try to download and from what PC I try to download. For a Javascript UI library that may be one of the most used out there this seems a little bit unreliable.

1 2 3 4 5 6 7 8 9 10 11

See also: TracQuery, TracTickets, TracReports

Last modified 2 years ago Last modified on Jul 29, 2018, 7:32:16 PM