All,
I just verified that i am using the patched 4.0.6 RT version.
I have also verified that this bug fix was in Tree.pm Fix quoting of CF names which contained odder characters · bestpractical/rt@a3b9b97 · GitHub
Still getting the error " Wrong query, expecting a OPERATOR in ’ select >u.Name<–here as User, count(1) as TotalClosedTix from Users u join Tickets t on u.id = t.owner where t.Status = “resolved” group by u.Name order by 2 desc limit 10;’ "
When i create an advanced query like
“select u.Name as User, count(1) as TotalClosedTix from Users u join Tickets t on u.id = t.owner where t.Status = “resolved” group by u.Name order by 2 desc limit 10;”
Thanks again
-winnFrom: Winn Johnston winn_johnston@yahoo.com
To: “rt-devel@lists.bestpractical.com” rt-devel@lists.bestpractical.com
Sent: Tuesday, September 11, 2012 9:04 AM
Subject: Re: [rt-devel] Trying to create a custom dashboard screen
From: Winn Johnston winn_johnston@yahoo.com
To: “rt-devel@lists.bestpractical.com” rt-devel@lists.bestpractical.com
Sent: Tuesday, September 11, 2012 9:03 AM
Subject: Re: [rt-devel] Trying to create a custom dashboard screen
All,
After following what Andy said, i put my query into the advanced query window. I ran it and it spit out this error
Wrong query, expecting a OPERATOR in ’ select >u.Name<–here as User, count(1) as TotalClosedTix from Users u join Tickets t on u.id = t.owner where t.Status = “resolved” group by u.Name order by 2 desc limit 10;’
Here is the original query.
select u.Name as User, count(1) as TotalClosedTix from Users u join Tickets t on u.id = t.owner where t.Status = “resolved” group by u.Name order by 2 desc limit 10;
Thanks again
winn Johnston
From: Andy Jewell Andy.Jewell@sysmicro.co.uk
To: Winn Johnston winn_johnston@yahoo.com
Sent: Thursday, September 6, 2012 2:09 PM
Subject: Re: [rt-devel] Trying to create a custom dashboard screen
The easiest way is to put your search into the normal ticket search ‘advanced’ tab and then save the search. It then appears as an option in your RT-at-a-glance prefs screen.
All,
I am trying to create a top closers list on the default dashboard. I have the exact SQL statment i want to use, but i am lost after that.
select u.Name as User, count(1) as TotalClosedTix from Users u join Tickets t on u.id = t.owner where t.Status = “resolved” group by u.Name order by 2 desc limit 10 \G;
*************************** 1. row ***************************
User: winnj
TotalClosedTix: 6
*************************** 2. row ***************************
User: dennisc
TotalClosedTix: 3
*************************** 3. row ***************************
User: royced
TotalClosedTix: 1
3 rows in set (0.00 sec)
What should i be reading to make this happen?
Thanks
Winn Johnston
List info: The rt-devel Archives
Final RT training for 2012 in Atlanta, GA - October 23 & 24
Training — Best Practical Solutions
We’re hiring! http://bestpractical.com/jobs