Jira filter for Business days

Bronx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 9, 2019

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?

1 answer

1 accepted

1 vote
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2019

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.

Bronx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 9, 2019

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.

Like Kevin Davies likes this
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2019

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. :)

Like Kevin Davies likes this
Tony B March 27, 2023

@Bronx Can you Post Screenshots of that Solution? Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events