Reporting: Display number of days since state change?

perkinsarm
Mega Guru

We have developed a custom engineering change workflow. We capture the date when the workflow state changes.

We would like to create reports that display how many days the change has been in the current state instead of the last update date.
Can this be done with the standard reporting tools?

5 REPLIES 5

ghsrikanth
Tera Guru

Hi Bradley,



For your requirement, the metric definition concept will help you for sure, create a metric for State field and that info can be used to construct a report.


Its the regular way of knowing at particular state and whats the duration of being in that state,


This should help you -


Metric Definition Support - ServiceNow Wiki



Mark if it is helpful or correct, feedback is appreciated


This appears to be what we need. Thank you. I may ask more questions as I try to implement this.


Heads up while you go to run the report -- the Incident Metric has a Duration field that will tell you how long the incident was in that state, but it only gets populated when Calculation Complete turns to true, which is when the incident stops being in that state.



So for example, in this list view, you can see how long INC0051019 was in a state of "Closed" because that calculation is complete, but most of the other metrics don't have that yet.


Screenshot 2016-03-21 14.08.25.png



So if you want to say "how long has incident XXX been in its current state, you'll need to do an aging report. ServiceNow doesn't support aging reports in its live reporting, but you can use Explore Analytics to generate an aging report:



Screenshot 2016-03-21 14.10.49.png



That'll give you a report like this:


Screenshot 2016-03-21 14.13.51.png


It can be published to the ServiceNow dashboard, live, and drillable for ServiceNow users.


Thanks for your insights, pretty cool and pretty helfpul