Skip to content

Calculate age of incident #1157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

SrijanPatwa
Copy link
Contributor

This script calculates and logs the age of all incidents in the ServiceNow incident table. It retrieves each incident's creation date, compares it with the current date, and calculates the age in days. This approach is useful for monitoring how long incidents have been open, helping teams prioritize older issues and ensuring timely resolution.

This script will help to get an idea of the size of tables present in ServiceNow instance and accordingly plan to reduce the instance database footprint.
This script calculates the age of all incidents in the ServiceNow incident table. It retrieves each incident's creation date, compares it with the current date, and calculates the age in days.
@abhrajyotikanrar
Copy link
Contributor

abhrajyotikanrar commented Oct 4, 2024

Hi @SrijanPatwa, Thank you for your contribution. As we reviewed, I see an extra file findTableSize.js in your PR. Please create separate PRs for each contribution. I am closing this PR now. Feel free to reopen this PR or submit a new PR once you make the necessary changes.

image

@abhrajyotikanrar abhrajyotikanrar self-assigned this Oct 4, 2024
@SrijanPatwa SrijanPatwa deleted the calculateAgeOfIncident branch October 4, 2024 14:06
@SrijanPatwa SrijanPatwa restored the calculateAgeOfIncident branch October 4, 2024 14:18
@SrijanPatwa SrijanPatwa deleted the calculateAgeOfIncident branch October 4, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants