I would like to gather the average time spent to close tasks for the last month. I can't find such metric in my interface. can someone help me?
This content was last updated in 2015. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2014 01:40 AM
I would like to gather the average time spent to close tasks for the last month. I can't find such metric in my interface. can someone help me?
I can obtain the same metric for incidents but I don't know where the one for tasks is located.
- Labels:
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2014 02:08 AM
tasks? are you referring catalog tasks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2014 02:31 AM
yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2014 06:03 AM
When you say "time spent to close" what exactly do you refer to? Created to Closed time or sum of Time Worked entries on the TASK?
There is an out-of-the-box business rule that does something like this:
BR: Close Ticket
Table: [sc_task]
Condition: current.state.changes() && (current.state == 3 || current.state ==4)
current.active = false;
current.work_end = nowDateTime();
current.business_duration = gs.calDateDiff(current.work_start.getDisplayValue(),current.work_end.getDisplayValue(),false);
But it's funny, I cannot seem to find the work_start field on that table.
Technically you should be able to use this same script to run your own business rule with the fields you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2014 06:18 AM
the fields work_start and work_end are inherited from task table .....