Opened 9 years ago

# Show only totals in Ticket Box

Reported by: Owned by: humberto@… gotoh normal TicketBoxMacro normal 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   |
----------


### comment:1 follow-up: ↓ 2 Changed 7 years ago by memartin

• Trac Release changed from 0.10 to 0.11

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:

• Tickets to solve in latest milestone: 433

with "latest milestone" being expressed as a subselect in an SQL report (which cannot be expressed as a TracQuery).

### comment:2 in reply to: ↑ 1 Changed 7 years ago by gotoh

• Status changed from new to assigned

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.