Modify

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#754 closed enhancement (fixed)

Add ability to use the custom query module to display the ticket list

Reported by: sid.wiesner@… Owned by: gotoh
Priority: normal Component: TicketBoxMacro
Severity: normal Keywords: query
Cc: Trac Release: 0.9

Description

I've been trying to move all my reports over to using custom queries because I know the Trac developers want to phase out the "Reports" module. Can you change this so it supports the "query" syntax as well?

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by anonymous

  • Cc tobutaz+bugs+trac@… added

comment:2 Changed 7 years ago by anonymous

  • Cc tobutaz+bugs+trac@… removed

The trac:TicketQuery macro works for me.

comment:3 Changed 6 years ago by anonymous

Doesn't for me either.
whether I use TicketQuery, or a report that is of format query:?....

same error:
Error: Macro TicketBox(10%,"Tickets Req Review (%d)",23) failed

near "query": syntax error
converting to sql syntax works fine.
0.11rc2, python 2.5

comment:4 follow-up: Changed 6 years ago by gotoh

  • Resolution set to fixed
  • Status changed from new to closed

(In [4084]) Support query string in macro argument and report definition.
See TracQuery for the syntax of query string.
Note that url style of query string is not yet supported.
So if you use it in report, you cannot refer it.

Example:

[[TicketBox("Unassigned tickets", [query:status=new],inline,summary)]]

Close #754.

comment:5 in reply to: ↑ 4 Changed 6 years ago by gotoh

Replying to gotoh:

Close #754.

Note that this fix is only for 0.11 yet.
I'll backport for other versions later (if possible).

comment:6 Changed 6 years ago by gotoh

Now it works on 0.9 and 0.10 (and of course 0.11 and 0.12dev).

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.