- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 06:18 AM
Hi, I would like to know how to get the date and time that an incident was last assigned to a queue (Assignment Group) from the incident_metric table.
I actually want to work out how many hours it took to resolve a ticket from the time it was assigned to the last queue (Assignment Group) that it was resolved in.
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 05:55 AM
Certainly Kuben. Here is a very helpful link to help get you started.
http://wiki.servicenow.com/index.php?title=Metric_Definition_Support#gsc.tab=0
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 06:22 AM
There is one OOB metric definition exist which capture time duration for change in assignment group, check if it is active in your instance. And then you can filter metric instances with filter-> definition= assignment group.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 06:26 AM
Hi Kuben,
As Purbali suggested, take a look at metrics. You may find this helpful if you are not already familiar with Metrics.
Docs: Metrics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 04:14 AM
Hi,
Thanks for providing this useful information. The function is a little complex to implement and I don't want to have to add new fields to the system - is there any way I can use whats currently in the incident_metric table? I have to get just the time it took to resolve from assignment to the last group it was resolved in.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 05:43 AM
Hi Kurben,
You don't need to add any additional fields to get Metrics going. You simply define what you want to watch for and it records the time duration that particular state happened. This is specifically what Metrics in ServiceNow were designed to do.
Without using Metrics, yes, you would have to create a new field and create a business rule with some script to track this.
If you feel it is too in-depth for your current skill set, I invite you to reach out to ServiceNow or one of our partners for professional services assistance.