Metric Definition not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2020 11:42 AM
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?
Then on the user form, I have Metrics as a related link but nothing appears there when the value has changed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2020 12:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2020 12:31 PM
Hi Ashutosh,
Just checked and there is nothing in there when the value is changed which suggests it's not running.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2020 01:06 PM
Hi,
Yes as Tanaji said it works only for task table. So you have to duplicate that BR which he mentioned.
Thanks,
Ashtutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2020 12:56 PM
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