- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-14-2024 07:07 AM
I'm in the process of creating a widget and need help retrieving details of incidents that were closed within a specific week or time frame, irrespective of their creation date. Additionally, I would like to know if there's a method to achieve this without using scripting. Could you please provide guidance on how to implement this functionality?
11-14-2024 04:31 PM
Hi @ansusabu – Yes, this can be achieved by filtering incidents based on the closed timestamp field, for example:
closed:>="2024-11-07T00:00:00 -0700" and closed:<="2024-11-14T00:00:00 -0700"
11-15-2024 02:11 AM
But these values are static, right? I want the values to be changing based on the dashboard time frame.
And does your query take incidents created in during the dashboard timeframe and closed based on the query time frame? I don't want that. I want all the incidents closed during the dashboard's timeframe irrespective of their creation date
11-15-2024 05:36 PM
Nope, you can use relative timestamps as well. For example:
closed:>="7 days ago"
To return all incidents closed during the dashboard's timeframe irrespective of their creation date, change date range of the dashboard or widget to "All times".
11-18-2024 04:40 AM
"7 days ago" is still static. I need the incidents which are closed from last-to-last Sunday to last Saturday every week.
11-18-2024 08:34 AM
This can be done with reports. You can schedule the report to run every week at a particular time, like Sunday at midnight, and look back exactly 7 days from then.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!