Reporting on "oldest 5"

ssoto
Kilo Contributor

How can I build a report that will automatically update to only show the "oldest 5" incident tickets?   I manually have to update the date to only show what I need.   This is the filter I've been using:

find_real_file.png

7 REPLIES 7

harshinielath
Tera Expert

Hi


      You have to write the script that does the calculation of current date/time and opened date/time


there are methods to do this


Refer the glide date/time methods in wiki


GlideSystem Date and Time Functions - ServiceNow Wiki



datediff() or daysAgo()


Ahhh ok thanks!


ssoto
Kilo Contributor

And this will automatically set the date to show only the oldest 5 incident tickets?


Yup if you give the input from 'opened' field and current date/time.



Click like or helpful if it solved the issue