
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 06:19 PM - edited ‎03-05-2024 06:22 PM
Hello,
I have a requirement regarding getting the incident aged based on the created date, incident age will appear in the choice list if incident new will appear (Below 30 days) if the incident above 30 days (Above 30 days) and (Above 60 days) until (Above 90 days).
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 11:09 PM - edited ‎03-05-2024 11:11 PM
Hi @Community Alums I amended few changes,
Change your BR trigger to before insert/update and remove current.update from script.
Script:
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 10:29 PM
Hello @Harish KM
Upon update still not working, and i found another issue when i creating new incident it will appear above 30 days and the older incidents are still nothing appears to the incident age field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 10:33 PM
Hi @Community Alums Create a new incident and can you check in logs table what value it prints. the below one.
gs.info('Incident age in days: ' + days);
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 10:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 11:09 PM - edited ‎03-05-2024 11:11 PM
Hi @Community Alums I amended few changes,
Change your BR trigger to before insert/update and remove current.update from script.
Script:
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 11:17 PM
Hello @Harish KM
Works now thanks for the help!