A query, a stat, and a list.
Dashboard
mine is a saved read. The page shows how many tickets have no owner, and lists the caller's tickets from that query.
app tickets "Tickets" {}
entity Ticket {
subject: text
priority: enum low, normal, high
owner: text
workflow {
initial Open
states Open, Closed
terminal Closed
}
}
query mine(who: text) = select subject, priority from Ticket where owner == who sort priority desc limit 20
page board "Board" list {
stat "Unassigned" = count(Ticket where owner == null)
list from mine(who: me) columns [subject, priority]
}