Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL for tickets without comment in 5 business days

Adam J I'm New Here Dec 14, 2021

Hello, I tried to find an answer to my question but couldn't quite find an existing thread that helped. I'm trying to come up with a JQL query that shows me all tickets (with the exception of one project type, OPT) that haven't been commented on in X number of business days (not just total days). What I currently have is below, and that's working fine for total days. Just can't quite figure out how to make it business (mon-fri) days. Any help would be appreciated! 

project not in ("OPT") AND "Last Comment Date" <= -5d AND status not in (Closed) AND priority in (Normal)

1 answer

@Adam J ,


There is no way for you to specify exactly the days you want to bring the query in your JQL, but one thing that can help you is to use "StartOfWeek" or StartOfDay in your JQL queries, see an example:

If you want the current week to be Mon-Sun, use "startOfWeek(1d), endOfWeek(1d)".

If you want the previous week to be Mon-Sun, use "(startOfWeek(-6d), endOfWeek(-6d)"


Using StarfOfDay, it would basically be StartOfDay (-5d), but it would bring similar result to what you currently use ">= -5d".


You could try using the weekly survey and see what results it brings you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

173 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you