I'm trying to create a filter to return yesterday's tickets and I used this and it works: resolutiondate >= startOfDay() AND resolutiondate <= startOfDay(1)
The problem comes on Monday, the filter returns Sunday's tickets (zero) when I really need Friday's tickets. Suggestions?
Hello Dan,
The query you mentioned is returning, in fact, all the tickers resolved between the start of the current day and the start of the next day, but not yesterday.
I'm not sure if you are resolving your tickets in the next business day and that's why you are using that query, but I think the best option to return the information you want would be to create a different filter which would apply the difference of days between Friday and Monday. Explaining better:
Let's suppose you would like to return on Monday all the resolved tickets for last Friday. You could use the following query:
resolutiondate >= startOfDay(-3) AND resolutiondate <= startOfDay(-2)
The filter above will return all the issues resolved during the third-day counted regressively to your current date. If today it's Monday, it will count the tickets resolved on Friday.
Let me know if this information helps.
Thanks, while that works as a separate filter, I found a different solution...Subscriptions!
I have the filter run nightly generating an email with the previous days tickets. Saturday will generate Friday's tickets while Sunday and Monday will be empty since nothing was closed on their previous days. Monday morning rolls around and I can read Saturday's email about Friday's tickets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm glad to know you were able to find a better solution, Dan!
Have a nice weekend and please don't hesitate to contact us again every time you need. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.