
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 11:55 AM
I setup a metric to get the assigned to duration on the sc_task table. It does not calculate the duration for the person who closes the task as the assigned to did not change. How can I get the metric to also calculate the duration of the person who closes the ticket as well?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 09:01 AM
You need 2 Metrics. One field duration on Assigned To field, and one like the previous screen shots on Active field. The latter will close out open Metrics when ticket is closed. The first will calculate duration. All Metrics will be in one Metric for ease of reporting.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 12:40 PM
That does not seem to do anything except set the metric to complete is true so I still have 2 metrics listed the one where is what assigned to someone else and then where the second person closes it and no duration is calculated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 01:05 PM
If you have a SC_task with one assigned to, it's captured in the Metric. If that person closes the task, nothing new is captured and the Metric doesn't show duration.
If you copy the Open metric and put on sc_task table, it will find open Metrics and set the duration. I just tried it, so I'm thinking this is what you're looking for.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 02:10 PM
Did you make any modification to the script? The screenshot I have in replay to Alan's response below is that the open script added. All it did was set the calculation compute to true on the first assigned to but did nothing for the one that was assigned to the person who closed it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 07:53 PM
No, except for the table which changed from Incident to Sc_task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 07:22 AM