Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Metrics with script calculation.

shalinikacham
Kilo Expert

Hi all,

I'm trying to create metrics to calculate 'Time between ticket creation and ticket closure' for a particular assignment group.

I've written the following code so far but the script doesn't work at all whatever the condition is.

find_real_file.png

From Subject Received Size Categories Andy Parimi FW: ServiceNow Metric Data 8:40 AM 40 KB

10 REPLIES 10

you may want to copy an existing BR for metrics and set it on your table

https://docs.servicenow.com/bundle/istanbul-performance-analytics-and-reporting/page/use/reporting/task/t_CreateAMetricDefinition.html 

 

Note: In the base system, metrics are configured to work on the task table only. To apply metrics to cmdb_ci tables, duplicate the metric events business rule that currently runs on the task table for the cmdb_ci table. Without the events created, no metric processing can occur.