我对 Trac 中的所有票证使用优先级。所有新票必须由我们的管理员用户优先处理。
虽然普通用户创建了一张新票,但他/她已经可以优先考虑这张票,但有时这可能非常随意。管理员应该自己查看所有优先级。
是否可以只选择管理员自己没有优先考虑的那些票?
我已经很近了:
-- union tickets initially prioritized by another than Admin and not changed ever since:
SELECT
milestone AS __group__,
t.id AS ticket,
summary,
reporter as prioritizer,
component, version, status, t.priority, severity, milestone,
t.type AS type,
t.time AS created,
changetime AS _changetime,
description AS _description,
reporter AS _reporter
FROM ticket t
WHERE priority <> 'average'
AND reporter not IN ('admin','other_admin')
AND status <> 'closed'
AND t.id NOT IN (
SELECT ticket FROM ticket_change WHERE field='priority'
)
UNION
-- with all changes made by others:
SELECT
milestone AS __group__,
t.id AS ticket,
summary,
c.author as prioritizer,
component, version, status, t.priority, severity, milestone,
t.type AS type,
t.time AS created,
changetime AS _changetime,
description AS _description,
reporter AS _reporter
FROM ticket_change c, ticket t
WHERE t.id=c.ticket and field='priority'
AND author not IN ('admin','other_admin')
AND status <> 'closed'
ORDER BY milestone, author, prioritizer
但这有很多票,现在管理员已经更正了。
我怎样才能只选择那些最后一个优先级(或如果唯一的一个优先级) 不是由管理员自己制定的票?
我在这里提出了一个单独的问题: