Version 23 (modified by Ryan J Ollos, 9 years ago) (diff)

Move example so it doesn't interfere with the page outline.

Ticket list in a box on the wiki page


This macro is unified for several trac versions (0.9, 0.10, 0.11, 0.12dev) since 2008-07-31 (r4088). Note that repository structure is changed and the version directory are no longer exist. Get latest source from here.


This macro displays the list of ticket numbers in a box on the right side of the page compactly. You can specify the tickets explicitly or use the result of reporting. The tickets will be displayed as sorted and uniq'ed. An example image is shown on the right of this page.

Note: 'query' format is not yet supported.

Bugs/Feature Requests

Existing bugs and feature requests for TicketBoxMacro are here.

If you have any issues, create a new ticket.

Download and Source

(2008/07/31 : Files for each trac versions are unified.)
(2008/03/28 : TicketBoxMacro for 0.8 is obsoleted.)


For trac 0.10 or before, copy to wiki-macros directory of your trac environment or system wide wiki-macros directory.

For trac 0.11 or later, copy to plugins directory of your trac environment (no need enable this plugin explicitly). Or copy it to system wide plugins directory then enable the TicketBox plugin via admin page.

Basic Usage

These example shows the simple list of tickets by specifiying ticket numbers. '#' character can be omitted:


These examples lists the tickets from the report result. The third example uses the dynamic variable 'COMPONENT'. The special variable 'USER' is always available and it is your login name (or 'anonymous' if not logged in). You can override the variable 'USER' like in the fourth example.


If field name of ticket id is not 'ticket' in report report definition, You can specify by ticket=xxx:


TracQuery style of query string can be used. And it aslo can be used in report defintion (starting with query:),


The combination of above is allowed. The tickets are listed as sorted and uniq'ed:


If nosort option is specified, tickets are listed without sorting:


Display Options

You can specify the size of the box:


You can specify the title. The value should be surrounded by single or double quote. You can also embed the number of tickets by '%d' in title string like third example:

[[TicketBox('Related Tickets',#1,#2)]]
[[TicketBox("Related Tickets",#1,#2)]]
[[TicketBox("There are %d tickets",{1})]]

If you do not want the box to be floating, use the inline keyword. The box is placed inline with the wiki text. If you want the ticket's summary to be displayed, use the summary keyword.


nowrap forces no wrap of line. It is useful with summary option. If this option is specified, line length may exceeds specified width.


Text color, background color, border line color and float position can be specified:


Recent Changes

16985 by rjollos on 2017-11-18 10:25:26
Add metadata
7516 by gotoh on 2010-02-09 01:38:57
Set documentation string of macro.
Now you can see macro description in WikiMacros page.
close #6591.
7508 by gotoh on 2010-02-08 07:24:14
Fix to work with trac 0.12dev.


Author: gotoh
Maintainer: gotoh