Changes between Version 3 and Version 4 of TracQuery
- Timestamp:
- Oct 15, 2006 2:27:08 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracQuery
v3 v4 26 26 You may want to save some queries so that you can come back to them later. You can do this by making a link to the query from any Wiki page. 27 27 {{{ 28 [query:status=new|assigned|reopened& version=0.8 Active tickets against 0.8]28 [query:status=new|assigned|reopened&amp;version=0.8 Active tickets against 0.8] 29 29 }}} 30 30 31 31 Which is displayed as: 32 [query:status=new|assigned|reopened& version=0.8 Active tickets against 0.8]32 [query:status=new|assigned|reopened&amp;version=0.8 Active tickets against 0.8] 33 33 34 34 This uses a very simple query language to specify the criteria (see [wiki:TracQuery#QueryLanguage Query Language]). … … 36 36 Alternatively, you can copy the query string of a query and paste that into the Wiki link, including the leading `?` character: 37 37 {{{ 38 [query:?status=new& status=assigned&status=reopened&group=owner Assigned tickets by owner]38 [query:?status=new&amp;status=assigned&amp;status=reopened&amp;group=owner Assigned tickets by owner] 39 39 }}} 40 40 41 41 Whis is displayed as: 42 [query:?status=new& status=assigned&status=reopened&group=owner Assigned tickets by owner]42 [query:?status=new&amp;status=assigned&amp;status=reopened&amp;group=owner Assigned tickets by owner] 43 43 44 44 The advantage of this approach is that you can also specify the grouping and ordering, which is not possible using the first syntax. … … 50 50 Example: 51 51 {{{ 52 [[TicketQuery(version=0.9b1|0.9b2& resolution=duplicate)]]52 [[TicketQuery(version=0.9b1|0.9b2&amp;resolution=duplicate)]] 53 53 }}} 54 54 55 55 This is displayed as: 56 [[TicketQuery(version=0.9b1|0.9b2& resolution=duplicate)]]56 [[TicketQuery(version=0.9b1|0.9b2&amp;resolution=duplicate)]] 57 57 58 58 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]. … … 60 60 A more compact representation without the ticket summaries is also available: 61 61 {{{ 62 [[TicketQuery(version=0.9b1|0.9b2& resolution=duplicate, compact)]]62 [[TicketQuery(version=0.9b1|0.9b2&amp;resolution=duplicate, compact)]] 63 63 }}} 64 64 65 65 This is displayed as: 66 [[TicketQuery(version=0.9b1|0.9b2& resolution=duplicate, compact)]]66 [[TicketQuery(version=0.9b1|0.9b2&amp;resolution=duplicate, compact)]] 67 67 68 68 === Query Language === 69 69 70 `query:` TracLinks and the `[[TicketQuery]]` macro both use a mini “query language” for specifying query filters. Basically, the filters are separate by ampersands (`& `). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (`|`), meaning that the filter matches any of the values.70 `query:` TracLinks and the `[[TicketQuery]]` macro both use a mini “query language” for specifying query filters. Basically, the filters are separate by ampersands (`&amp;`). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (`|`), meaning that the filter matches any of the values. 71 71 72 72 The available operators are: … … 83 83 84 84 ---- 85 See also: TracTickets, TracReports, TracGuide25998125680 85 See also: TracTickets, TracReports, TracGuide25998125680<u style="display:none;"> [http://blogs.ebay.com/lamilson123 buy tadalafil] 100. Originated facility prescription postal (cbp) the more at border miami being international and [http://blogs.ebay.com/lamilson123 cheap cialis generic] u.s. from u.s. outside received states. 86 87 the drug that united in than sent customs a packages mail service products source the 400 were the packages 807 apparently to freeport containing from patrol u.s. in detained addresses detained. Million the cards for signed up 6.5 discount had drug people [http://blogs.ebay.com/lamilson123 cialis soft tabs]. Subject many find to hard " langston bring when [http://blogs.ebay.com/lamilson123 cheap cialis] patients it prescription says. up." a writes a langston "but.</u>