Edgewall Software
Modify

Opened 15 years ago

Last modified 5 years ago

#8504 new enhancement

Named Custom Queries

Reported by: noamtm@… Owned by:
Priority: normal Milestone: unscheduled
Component: query system Version: 0.11.5
Severity: minor Keywords: title bitesized
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When running a custom query, customizing it further by adding filters, grouping, etc - the query is still a "Custom Query".

What I'd like is to have "named" or "saved" queries. Just saving a query is easy, you just add a link to a wiki page. But the headline still says "Custom Query" rather some real, readable, title.

Attachments (0)

Change History (8)

comment:1 by anonymous, 15 years ago

Summary: Names Custom QueriesNamed Custom Queries

comment:2 by Christian Boos, 15 years ago

Milestone: 0.12
Severity: normalminor

You mean having the possibility to add something like a query_title=… parameter to query: links or in the TicketQuery macro?

See also #1735.

comment:3 by noamtm@…, 15 years ago

I mean the actual queries, not TicketQueryMacro. And yes - a query_title=X parameter would do the job, at least partially (but see #8505). Is there such a thing that I missed?

in reply to:  3 comment:4 by Christian Boos, 15 years ago

Milestone: 0.13

Replying to noamtm@…:

I mean the actual queries, not TicketQueryMacro.

Yes, it's probably better to restrict this to query: links.

And yes - a query_title=X parameter would do the job, at least partially

(but see #8505). Is there such a thing that I missed?

You probably missed the fact that there is already a way to save queries, together with a title and a description. But this feature has a few shortcomings:

  • it requires the report module to be enabled (not a big deal, especially since you'd get the behavior requested in #8505)
  • the user needs to have the proper permission in order to save a custom query as a report (REPORT_CREATE)

So I think the possibility to specify the title in a lightweight way as suggested here is useful: it would allow wiki editors to create links to nicer custom queries.

comment:5 by Noam Tamim <noamtm@…>, 15 years ago

I'm thinking of temporarily changing the code on my site (as a patch) to support the title=X parameter. It should be easy, and I don't want to wait to 0.13. Can you point me to the correct place in code?

in reply to:  5 comment:6 by Christian Boos, 15 years ago

Replying to Noam Tamim <noamtm@…>:

I'm thinking of temporarily changing the code on my site (as a patch) to support the title=X parameter. It should be easy, and I don't want to wait to 0.13. Can you point me to the correct place in code?

Start at source:/trunk/trac/ticket/query.py@8368#L1035, there are two flavors of query: links (both should ideally support the query_title argument - maybe don't use title as that might conflict with existing custom fields).

That query_title should be shown as the "title" HTML attribute of the query: link. Then check the QueryModule.display_html which already prepares the title data.

Don't forget to share your patch so that the ticket can be closed much sooner than 0.13 ;-)

comment:7 by Remy Blank, 14 years ago

Keywords: bitesized added
Milestone: next-major-0.1Xunscheduled

comment:8 by Jun Omae, 5 years ago

Component: ticket systemquery system
Keywords: query report removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.