Modify

Opened 17 years ago

Last modified 16 years ago

#1929 assigned enhancement

Show only totals in Ticket Box

Reported by: humberto@… 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 Changed 16 years ago by memartin

Trac Release: 0.100.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 16 years ago by Shun-ichi Goto

Status: newassigned

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Shun-ichi Goto.

Add Comment


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

 
Note: See TracTickets for help on using tickets.