Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to show the last 90 days of incidents in the Recent Incidents link (User Widget)? Question:

ROSHINIB
Tera Contributor

The requirement is to display incidents from the last 90 days in the Recent Incidents link within the Record Information contextual side panel of the User widget.

Currently, the OOTB (Out of the Box) configuration shows incidents from the last 7 days.
Is there a way to modify this to show incidents from the last 90 days instead?
If yes, could you please provide the steps or configuration details to achieve this?

Thanks in advance!

2 REPLIES 2

Renat Akhmedov
Tera Contributor

Hi ROSHINIB, 

Long story short - yes, you can change the range from 7 to 90 days. I'll try to explain how to do it below: 

The "Recent Incidents" link in the widget is driven by a data resource or filter condition that currently limits records to incidents opened in the last 7 days.

To update it:

Open the workspace in UI Builder.

Locate the User Widget - open its Data Resource

Edit the filter condition from

opened_at>=javascript:gs.daysAgoStart(7)


to

opened_at>=javascript:gs.daysAgoStart(90)


Save and publish your changes.

After that, the "Recent Incidents" link will display incidents from the last 90 days.

If my answer helps you somehow, please mark it as helpful. 

Best regards,
Renat Akhmedov

Ankur Bawiskar
Tera Patron
Tera Patron

@ROSHINIB 

please share some screenshots.

try approach shared by @Renat Akhmedov 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader