wiki:TicketBoxMacro

Version 1 (modified by gotoh, 9 years ago) (diff)

New hack TicketBoxMacro, created by gotoh

Ticket list in a box on the wiki page

Description

Display list of ticket numbers in a box on the right side of the page. The purpose of this macro is show related tickets compactly. You can specify ticket number or report number which would be expanded as ticket numbers. Tickets will be displayed as sorted and uniq'ed.

Bugs/Feature Requests

Existing bugs and feature requests for TicketBoxMacro are here.

If you have any issues, create a new ticket.

Download

TicketBoxMacro for 0.8.
TicketBoxMacro for 0.9.

Source

You can check out the source for TicketBoxMacro from Subversion at http://trac-hacks.swapoff.org/svn/ticketboxmacro.

Example

Simple list of tickets by specifiying ticket numbers. '#' character can be omitted:

[[TicketBox(#1,#7,#31)]]
[[TicketBox(1,7,31)]]

List tickets expanded from the report result. Third example uses dynamic variable:

[[TicketBox({1})]]
[[TicketBox([report:1])]]
[[TicketBox([report:9?COMPONENT=TicketBox])]]

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

[[TicketBox({1),#50,{2},100)]]

Specifying a size of the box:

[[TicketBox(500pt,{1})]]
[[TicketBox(200px,{1})]]
[[TicketBox(25%,{1})]]

Specifying a title of the box:

[[TicketBox('Related Tickets',#1,#2)]]
[[TicketBox("Related Ticekts",#1,#2)]]

Author/Contributors

Author: gotoh
Contributors:

TagIt(macro,gotoh,example,0.8,0.9)?