import
[web.mtrack] / defaults / reports / Mine
1 SELECT
2    pri.value as __color__,
3    (case when t.nsident is null then t.tid else t.nsident end) as ticket,
4    summary,
5    classification as type,
6    (select mtrack_group_concat(name) from
7       ticket_components tcm
8       left join components c on (tcm.compid = c.compid)
9       where tcm.tid = t.tid) as component,
10    (select min(duedate) from
11       ticket_milestones tm
12       left join milestones m on (tm.mid = m.mid)
13       where
14        tm.tid = t.tid
15        and m.duedate is not null
16       ) as due,
17    (select mtrack_group_concat(name) from
18       ticket_milestones tm
19       left join milestones m on (tm.mid = m.mid)
20       where
21        tm.tid = t.tid
22       ) as milestone,
23    severity,
24    priority,
25    estimated - spent as remaining
26 FROM
27    tickets t
28    left join priorities pri on (t.priority = pri.priorityname)
29    left join severities sev on (t.severity = sev.sevname)
30 WHERE
31  t.status <> 'closed'
32  AND owner = $USER
33 ORDER BY
34  case when (select count(duedate) from
35         ticket_milestones tm
36         left join milestones m on (tm.mid = m.mid)
37         where tm.tid = t.tid and m.duedate is not null) > 0 then 1 else 0 end,
38  pri.value, sev.ordinal,
39  due,
40  t.created
41
42
43 = My tickets =
44
45 This report shows tickets assigned to the logged-in user with the highest
46 priority items listed first.
47
48 This report is run as part of the [wiki:Today] page, and any changes made here
49 will affect that page.