Modify

Opened 7 years ago

Last modified 5 years ago

#1929 assigned enhancement

Show only totals in Ticket Box

Reported by: humberto@… Owned by: gotoh
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: Changed 5 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 5 years ago by gotoh

  • Status changed from new to 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.

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.