Analytics using Search Query - Time to Resolve or Complete
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭Now we're getting a little bit more complicated To get the Support Group, we have to join the DisplayString table. I went ahead and added AssignedUser too:SELECT WorkItemId, TItle, AssignedUser,ds.DisplayString AS 'SupportGroup', datediff(dd, Created, ResolvedDate) AS NumberOfDaysToCloseFROM WorkItemLEFT JOIN DisplayString ds ONds.ElementID = Workitem.TierId AND ds.LocaleID = 'enu'WHERE ResolvedDate IS NOT NULLAND ds.DisplayString = 'Tier 1'
You can change 'Tier 1' to your support group your looking for.5
Answers
You can't get a number of days to resolve from the Search, but here's a quick SQL query that I think gets what you're after:
I'm running this against ServiceManagement.
@Justin_Workman Thank you for the query.
How would you target a specific support group? Could you use the following and statement with the WHERE?
AND SupportGroup = "HelpDesk" ;
Karen
You can change 'Tier 1' to your support group your looking for.
@Justin_Workman this is great it is showing the total number of tickets but its not giving an amount of time it took to resolve/complete. Just the number of tickets.
@Justin_Workman Yes it does show that amount of days but I was wondering if there was a way to show actual time as in 1 hour or 2 hours?
@Justin_Workman so it should look like this
added AssignedUser too:
@Justin_Workman Thank you for your assistance this works great. Have a good weekend!
Karen