Metric Definition not working

sndev1099
Giga Expert

Hello, 

I've set up a new metric to calculate the below field when it changes. I may have set it up wrong and may need to script (but didn't think I would need to as it should work OOTB?). Please can you tell me if I'm doing something wrong?

 

find_real_file.png

Then on the user form, I have Metrics as a related link but nothing appears there when the value has changed.

find_real_file.png

4 REPLIES 4

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Can you first go to that metric which you created and see if there are metric results or not as below

find_real_file.png

 

Thanks,
Ashutosh

Hi Ashutosh, 

 

Just checked and there is nothing in there when the value is changed which suggests it's not running.

Hi,

Yes as Tanaji said it works only for task table. So you have to duplicate that BR which he mentioned.

Thanks,
Ashtutosh

Tanaji Patil
Tera Guru

OOTB metric definition works only on task table.

"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."

 

https://old.wiki/index.php/Metric_Definition_Support

 

-Tanaji
Please mark response correct/helpful if applicable