Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,019
Community Members
 
Community Events
168
Community Groups

Way for JQL to find Issues in a particular Status for the previous day excluding weekends?

Hi,

Right now I have a JQL filter that is written like this:

project = "Project Name" and status was in ("Status 1", "Status 2") during (startofday(-1d), endofday(-1d))

Every morning I am using the number from this filter to enter into a spreadsheet to log data for historical information we use.

Tues-Fri this filter works fine. The problem is on Monday I have to go into the filter and manually update the numbers to -3d to ignore Sunday and Saturday. Or, copy the filter and updated those numbers so now there are now 2 filters instead of one, just slightly different. This becomes particularly cumbersome if you have multiple filters looking for these same date ranges for various different things.

I am just wondering if anyone knows of a way to accomplish this same Filter but have it skip the Sunday and Saturday days so that if I were to look at it on Monday it would show me last Fridays results and if I were to look at tomorrow on Tuesday it would show me yesterdays (Monday) results all just using a single filter?

Thanks,

1 answer

0 votes
Curt Holley Community Leader Dec 12, 2021

Hi @Matt Steadman 

This is how I tackled the recording of status changes in Jira based on "business days"  https://community.atlassian.com/t5/Jira-Cloud-Admins-articles/Status-Changes-in-Jira/ba-p/1806392

With Jira standard, you would be wise to do this per project (rather than Global) as chances are it will send you past the global executions on standard. It is simple as to copy and reconfigure for each project (required).

If this doesn't sort your exact use case, take some inspiration to get Jira/automation to do this task for you.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events