This can be found
just under the main Trac menu when viewing reports. We can use this builder to
create complex queries and view the results on the fly.
At the moment Trac doesn't support saving custom queries, but it does come close.
We can link to queries in two ways from anywhere in Trac that supports wiki
formatting (even other tickets!).
Linked Queries
These use the same formatting as normal links within a wiki, but this time they start
with the query: designator. We can either craft the query link by hand using Trac's
query language, or more easily simply grab the query from the address bar in
our browser.
For example, a query that has the URL of http://projects.example.com/
projects/sandbox/query?type=bug&order=priority can be expressed as linked
query as follows:
query:?type=bug&order=priority
Embedded Queries
By using the TicketQuery macro, we can embed a list of tickets anywhere that
supports wiki formatting.
Chapter 5
[ 55 ]
What is a macro?
A macro is a small program or script that, in the case of Trac, alters the
content of the wiki. Examples include automatically creating a table of
contents for a page, inserting a date/time or inserting a list of tickets.
There is a default set of macros distributed with Trac, and we can obtain
more from: http://trac.
Pages:
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82