How to add a filter condition to get Tasks resolved within of 24 hours of its creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago - last edited an hour ago
Hi Team,
I have to preapre a report on sc_task table where I need to pull the Tasks resolved within creation of 24 hours.
How to add a filter condition to get Tasks resolved within of 24 hours of its creation ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @The Matrix,
For a report on sc_task, there is no OOTB filter that directly compares Resolved At and Created timestamps.
create a condition based on the duration between Resolved At - Created
and filter for records where the duration is <= 24 hours
If you're using a report, you can:
- Create a Database View or Report Source with the duration calculation, or
- Use Performance Analytics if available.
Also ensure you filter only resolved/closed tasks
State is Closed Complete AND Resolved At is not empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @The Matrix
Navigate to Reporting: Go to Reports > Create New
Set the Data Source:
- Report name: Tasks Resolved in 24 Hours
- Source type: Table
- Table: sc_task
Configure the Filters:
- Navigate to the Condition Builder and add the following condition rows:
- [State] [is] [Closed Complete] (or your chosen resolution state)
- [Closed] [relative on or before] [1] [Days] [after] [Created]
- Alternatively, you can use [Business duration] [less than] [24] [Hours] if you wish to calculate working hours rather than calendar time.
Refer: How to create a report which are created and resolved in 24 hours
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @The Matrix
If you only need cases that were closed in the last 24 hours, then please apply a filter for records closed within the past 24 hours and use that dataset instead.
You can try like this
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************