Edgewall Software
Modify

Opened 17 years ago

Last modified 9 years ago

#6160 new enhancement

Enhanced Query for All Tickets by Milestone + RFE for a new automatically detected datatype

Reported by: Carsten Klein Owned by:
Priority: normal Milestone: next-major-releases
Component: report system Version: 0.10.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

The below query orders all milestones and tickets by their respective due date or the time of creation in case of the ticket, as was implemented before.

It would be nice to have a DUE datatype being mapped to the datetime datatype in order for displaying the due date in the __group__ header along with the t.milestone name.

TIA

Carsten


SELECT p.value AS __color__,
   t.milestone ||' Release' AS __group__,
   t.id AS ticket, t.summary, t.component, t.version, t.type AS type, 
   (CASE status WHEN 'assigned' THEN t.owner||' *' ELSE t.owner END) AS owner,
   t.time AS created, m.due as date,
   t.changetime AS _changetime, t.description AS _description,
   t.reporter AS _reporter
  FROM ticket t
  LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
  LEFT JOIN milestone m ON m.name = milestone
  WHERE status IN ('new', 'assigned', 'reopened') 
  ORDER BY (milestone IS NULL),m.due, p.value, t.type, time

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 17 years ago

Description: modified (diff)

comment:2 by Christian Boos, 15 years ago

Component: generalreport system
Milestone: not applicablenext-major-0.1X

Some kind of type annotation for columns, or more generally, output filters, could be useful.

comment:3 by Ryan J Ollos, 9 years ago

Owner: Jonas Borgström 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.