このレポートは、実行される際のログインユーザ名で、
動的に置き換えられる変数 USER を
使用した例です。
Report execution failed:
InternalError: (1052, u"Column 'description' in field list is ambiguous")
SELECT COUNT(*) FROM (
SELECT p.value AS __color__,
(CASE status WHEN 'accepted' THEN '着手中' ELSE '担当中' END) AS __group__,
id AS ticket, summary AS 概要, component AS コンポーネント,
version AS バージョン, milestone AS マイルストーン, t.type AS 分類,
priority AS 優先度, time AS created,
changetime AS _changetime, description AS _説明,
reporter AS _報告者
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
WHERE t.status <> 'closed' AND owner = %s
ORDER BY (status = 'accepted') DESC, CAST(p.value AS signed), milestone, t.type, time
) AS tab
Note:
See TracReports
for help on using and creating reports.