Edgewall Software
Modify

Ticket #1735 (closed enhancement: fixed)

Opened 7 years ago

Last modified 8 months ago

Custom Query ''saved as'' Report.

Reported by: bruno@… Owned by: cboos
Priority: normal Milestone: 0.11
Component: report system Version: 0.8.4
Severity: major Keywords: query
Cc: bruno@…, dserodio@…, sdyson@…, s.lipnevich@…, ohnobinki@…
Release Notes:
API Changes:

Description (last modified by cboos) (diff)

That would be well if one could save a Custom Query as a new Report.

I think that that would make it possible to do without Create New Report...


See also: #1338 and #1594 (earlier requests for this feature)

Attachments

Change History

comment:1 Changed 7 years ago by cboos

  • Owner changed from jonas to cboos
  • Priority changed from normal to low
  • Status changed from new to assigned

That's an often requested feature.
The usual answer has so far been: copy the query URL
and paste it in a Wiki page after a query:? link
or inside a [[TicketQuery]] macro.

However, I'd like to investigate the possibility to
use the current query's SQL as a basis for creating a new report,
as you suggested.

The advantages:

  • list of all the available reports in the obvious place (View Tickets)
  • use of the {n} syntax for saved queries. The query can therefore be modified and all the references will use the latest version of the query (this is not the case with the !query: and [[TicketQuery]] forms)

comment:2 Changed 7 years ago by anonymous

  • Cc bruno@… added

comment:3 Changed 7 years ago by mgood

Well, cmlenz has been planning to phase out the Reports module for a while now, so let's not start planning new features around it. Plus, turning one of the queries into a SQL report loses a lot of the flexibility that the query module offers. If we provide a button to save the query I think that it needs to save it for use in the query module, not as SQL.

comment:4 Changed 7 years ago by Ian Leader <__ian.leader__@…>

Are details of the proposal to remove the report module available somewhere? I agree that it would be better to focus effort on the query module (including the ability to save queries as queries, not reports), but I would hate to lose the flexibility of the report module.

comment:5 Changed 6 years ago by dserodio@…

  • Cc dserodio@… added

comment:6 Changed 6 years ago by cboos

My current thinking about this would be simply to save the query string
in the sql field, not messing around with the actual SQL.

comment:7 Changed 6 years ago by anonymous

IWBRN nice be able to save custom queries somehow. We also need the ability to select which fields are in the output.

just my 2 cents.....

comment:8 Changed 6 years ago by Armin Ronacher

I would just save the URL in the database. eg

status=assigned&group=type&owner=cboos&type=enhancement&order=priority

comment:9 Changed 5 years ago by cboos

  • Description modified (diff)
  • Milestone set to 0.11

This feature seems to be requested quite often.
I propose to add a Save Query button in the Ticket Query page when the user has the REPORT_CREATE permission. This would then go to the new report page, with the query field pre-filled with the query string (as mentioned above).

The report module could first handle both SQL queries and custom queries,
then later (milestone:0.12?), support for SQL queries could be dropped from the report module.

comment:10 Changed 5 years ago by cboos

  • Status changed from assigned to new

comment:11 Changed 5 years ago by sid

  • Keywords query added

comment:12 follow-up: Changed 5 years ago by cboos

  • Description modified (diff)

If a query is saved as a report, then it can be easier to tweak it further, even if the UI for that is not (yet) available in the Custom Query view:

  • specify which columns should be displayed (#2821)
  • should make it possible to easily define and change the default custom query

comment:13 in reply to: ↑ 12 Changed 5 years ago by sid

Replying to cboos:

  • should make it possible to easily define and change the default custom query

See #2409.

comment:14 Changed 5 years ago by anonymous

  • Cc sdyson@… added

comment:15 Changed 5 years ago by cboos

  • Priority changed from low to normal

comment:16 Changed 5 years ago by cboos

  • Component changed from general to report system
  • Resolution set to fixed
  • Severity changed from normal to major
  • Status changed from new to closed

Implemented in r4782.

comment:17 Changed 5 years ago by anonymous

  • Cc sdyson@… added; sdyson@… removed

comment:18 Changed 5 years ago by s.lipnevich@…

  • Cc s.lipnevich@… added

comment:19 Changed 8 months ago by ohnobinki@…

  • Cc ohnobinki@… added
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.