Modify

Opened 12 years ago

Closed 8 months ago

#40 closed defect (wontfix)

TicketBox ticket titles

Reported by: ebrown@… Owned by: Shun-ichi Goto
Priority: normal Component: TicketBoxMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

It would be awesome to be able to use TicketBox to show a list of tickets with their titles:

[[TicketBox(200px,tickettitles,'%d Open Tickets',[report:1])]]

would generate

 #1 Exception in Core::Authen...
#19 Usernames containing '%'...
#23 Error during install

You could structure it with <div>s such that the <div> containing the title was <div style="width:300px;white-space:nowrap;overflow:hidden"> to automatically keep it on 1 line.

Attachments (1)

TicketBox-withtext.diff (1.8 KB) - added by Gary Oberbrunner 12 years ago.
Patch to support optional ticket descriptions as well as text.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by Alec Thomas

Component: TracHacksTicketBoxMacro
Owner: changed from Alec Thomas to Shun-ichi Goto

Changed 12 years ago by Gary Oberbrunner

Attachment: TicketBox-withtext.diff added

Patch to support optional ticket descriptions as well as text.

comment:2 Changed 12 years ago by Gary Oberbrunner

I've enclosed a patch against the 0.9 version of Oct. 7, 2005 that supports ticket descriptions. You use it by creating a report that outputs at least two fields: "ticket" which is the ID number, and "text" which is whatever you want the text to say (could come from ticket summary for instance). If the report has no "text" field, it behaves as it used to. If it does have "text", it creates a somewhat different format like this:

#40: do something #41: fix widgets #99: fronobulate the snozzwangler

I didn't do the <div> idea from the original ticket though, but it seems like a good idea.

comment:3 Changed 12 years ago by anonymous

Sorry that last example didn't come out right. Each ticket and its number were supposed to be on a separate line, like this:

#40: do something
#41: fix widgets
#99: fronobulate the snozzwangler

comment:4 Changed 12 years ago by Alec Thomas

milestone: 0.9

Milestone 0.9 deleted

comment:5 Changed 8 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

It appears this request can be satisfied with the TicketQueryMacro.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Shun-ichi Goto.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.