[rt-users] Count and Group By CF

Barton Chittenden barton at bywatersolutions.com
Fri Dec 9 12:23:12 EST 2016

We use a CF called 'Community Bug' to track bugzilla bug numbers associated
with customer tickets. It would be really useful to know which values of
CF.{Community Bug} occur most often.

If you'll pardon a mix of SQL and query builder syntax, I'm looking to do
something like this:

SELECT COUNT(*), CF.{Community Bug}
GROUP BY CF.{Community Bug}

I'm well aware that query builder doesn't work like this, but I'm wondering
if there's a way to do something like this.

I'm sure that I could do this by querying the database directly, but I'd
prefer to do it the RT way if there is one.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20161209/bd143f4a/attachment.htm>

More information about the rt-users mailing list