How to query/report on incidents for knowing the age of ticket?

pavankum
Kilo Expert

Hi,

 

i would like to report/ query incidents of all active incidents so that it should give me the incidents based on age. like incidents count and age.

 

For example like below

 

Incident Count                 Age

              25                                 3 days

              30                                 5 days

              50+                             10 days

11 REPLIES 11

Please look at Ticket age calculation for all open tickets.


I am getting below error.

 

Error during JavaScript evaluation: Not all references of "current" are passed in by "arguments" script: calculateAge(); function calculateAge(){ var datedif = gs.dateDiff(current.sys_created_on,current.resolved_at); current.u_age = datedif; current.update(); }