Changes between Version 18 and Version 19 of TicketQuery
- Timestamp:
- Oct 3, 2017, 12:59:04 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TicketQuery
v18 v19 1 1 = !TicketQuery Wiki Macro 2 2 3 The !TicketQuery macro lets you display information on tickets within wiki pages.4 The query language used by the `[[TicketQuery]]` macro is described in [TracQuery#QueryLanguage TracQuery] page.3 The !TicketQuery macro lets you display ticket information anywhere that accepts WikiFormatting. 4 The query language used by the `[[TicketQuery]]` macro is described in the [TracQuery#QueryLanguage TracQuery] page. 5 5 6 6 == Usage … … 8 8 [[MacroList(TicketQuery)]] 9 9 10 == Example 10 == Examples 11 11 12 12 ||= **Example** =||= **Result** =||= **Macro** =|| … … 106 106 |----------------------------------------------------------- 107 107 108 == Using the `[[TicketQuery]]` Macro108 === Format: list 109 109 110 The [trac:TicketQuery TicketQuery] macro lets you display lists of tickets matching certain criteria anywhere you can use WikiFormatting.111 112 Example:113 110 {{{ 114 111 [[TicketQuery(version=0.6|0.7&resolution=duplicate)]] … … 118 115 [[TicketQuery(version=0.6|0.7&resolution=duplicate)]] 119 116 120 Just like the [wiki:TracQuery#UsingTracLinks query: wiki links], the parameter of this macro expects a query string formatted according to the rules of the simple [wiki:TracQuery#QueryLanguage ticket query language]. This also displays the link and description of a single ticket:121 117 {{{ 122 118 [[TicketQuery(id=123)]] … … 126 122 [[TicketQuery(id=123)]] 127 123 128 A more compact representation without the ticket summaries is: 124 === Format: compact 125 129 126 {{{ 130 127 [[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]] … … 134 131 [[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]] 135 132 136 If you wish to receive only the number of defects that match the query, use the `count` parameter: 133 === Format: count 134 137 135 {{{ 138 136 [[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]] … … 142 140 [[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]] 143 141 144 A graphical use of the macro is with the `format=progress` attribute: 142 === Format: progress 143 145 144 {{{ 146 145 [[TicketQuery(milestone=0.12.8&group=type,format=progress)]] 147 146 }}} 148 147 149 For example for one of the upcoming milestones, bars are shown by ticket type:150 [[TicketQuery(milestone=0.12.8&group=type,format=progress)]]148 This is displayed as: 149 [[TicketQuery(milestone=0.12.8&group=type,format=progress)]] 151 150 152 151 ----