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.

How to get the time per queue?

Arthur Sanchez
Giga Guru

I have to somehow get the data on the time the ticket spent in each queue to then calculate how much time this ticket spent per queue. Is there a place in ServiceNow that already stores these values ​​in the table, or if not, does anyone have any idea how to get the data and set up a rule to calculate the time interval?

Captura de tela 2024-06-17 110604.pngCaptura de tela 2024-06-17 110634.png

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

For incidents These things are tracked via metrics.  You may have to create a metric definition for your use case

This should possibly work for you

See more here: Metrics and metric definitions (servicenow.com)

 

-Anurag

I managed to show the time difference with metrics, the problem now is, I don't understand how to configure the metric so that it takes the last update date when the ticket is closed to calculate the time.

Captura de tela 2024-06-17 153947.png