Opened 17 years ago
Last modified 16 years ago
#1929 assigned enhancement
Show only totals in Ticket Box
Reported by: | Owned by: | Shun-ichi Goto | |
---|---|---|---|
Priority: | normal | Component: | TicketBoxMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I think a great feature for TicketBoxMacro would be to have it list only the total of tickets found in that report. This would be specially useful for using many boxes and/or boxes for reports that have lots of tickets.
Something like this:
- Active - | 29 | ----------
Attachments (0)
Change History (2)
comment:1 follow-up: 2 Changed 16 years ago by
Trac Release: | 0.10 → 0.11 |
---|
comment:2 Changed 16 years ago by
Status: | new → assigned |
---|
Replying to memartin:
It would also be nice if there were an option just to return that Total as a text number, just like the "count" option in TicketQuery.
This request seems reasonable. I implemented in r5658.
The new keyword is inline_total
. With this keyword option, the macro goes
simple text of ticket count.
The text is surrounded by <span>...</span>
as inline element, so it can be embeded
in the middle of the text.
For example,
There are [[TicketBox({1}, inline_total)]] tickets opened.
will be rendered as
There are 11 tickets opened.
It would also be nice if there were an option just to return that Total as a text number, just like the "count" option in TicketQuery. At the Moment, TicketBoxMacro has the advantage to be able to display results of TracReports based on SQL queries, AFAICS TracQuery cannot do this as of now.
So at the moment there seems to be no way to do something like this:
with "latest milestone" being expressed as a subselect in an SQL report (which cannot be expressed as a TracQuery).