Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
Community Members
Community Events
Community Groups

JQL for issue in status for last 3 or more business days


I need the JQL query for getting those issues that are currently in certain status for the last 3 or more business days.

2 answers

1 accepted

2 votes
Answer accepted
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 11, 2023

Hi @mmhassan , 

If you didn't use business days, your query would look like this: 

status = "In Progress" AND status changed TO "In Progress" BEFORE -3d 


JQL does not have a "business day" concept, but you have weeks and days, if you want to, you could make calculations for your 3 business days (using the weekends as non-business days, not another schedule you define yourself).
I found another question describing this here

It would look like this: 

status = "In Progress" AND ((status changed TO "In Progress" BEFORE -3d AND status changed TO "In Progress" AFTER startofWeek()) OR status changed TO "In Progress" BEFORE -5d)

-> Meaning if 3 days ago was before the start of the week, count 5 days back instead of three (accounting for 2 weekend days)

Hope it helps! 

- Tessa

Thanks, let me test it and will get back to you

That JQL is awesome :)

Like Tessa Tuteleers likes this

Thanks for the great answer.

Like Tessa Tuteleers likes this

I'm not sure if it's possible to run JQL queries related that respect business days with plain JQL. There are add-ons that can do more sophisticated queries.

If you drop the business days requirement you could use something like: 

status = 'in progress' AND status changed to 'in progress' before -3d

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events