Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Exclude Weekends from JQL Query

Christi Evans
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!
March 23, 2023

 

Question: How to exclude Saturday & Sunday from JQL filters. 

 

Backstory: We use a "Resolution Time" gadget on Jira dashboard that illustrates how many days it took to get bugs resolved, on average. 

It currently runs off this simple query: project = Puppies AND issuetype = Bug

We do not want Saturday & Sunday counted in the resolution time. We want Monday - Friday, business days only.

 

 

 

Additional Information:

It's Jira team-managed project

It's not a Jira Service Project (no SLA options afaict)

Want to exclude all weekends, not specific weekends. 

 

 

2 answers

1 vote
Pedro Souza
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2014

Hello,

Take a moment to check your logs for more clues about this behaviour:

  • JIRA_Install/log/catalina.out
  • JIRA_HOME/logs/atlassian-jira.log

Pedro Souza
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2014
  • Try to connect using the default postgres user.
  • Try changing from "127.0.0.1" to "localhost"
Pedro Souza
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2014
mostafa jamareh
July 27, 2014

thank you Pedro Souza ,

catalina.out : Exception in thread "http-bio-8082-exec-15" java.lang.OutOfMemoryError: PermGen space

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 27, 2014

What does the log file say? It will almost certainly have a lot more information, hopefully including the full error, than what you get on screen.

mostafa jamareh
July 27, 2014

thank you Nic Brough

there is no exception on jira logs on jira-home

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 27, 2014

I very much doubt that - either the setup is still running, or it's failing with a set of errors in the logs.

Can you log into the database and check what Jira has created in there?

mostafa jamareh
July 27, 2014

catalina.out : Exception in thread "http-bio-8082-exec-15" java.lang.OutOfMemoryError: PermGen space

mostafa jamareh
July 27, 2014

there is no table on jira database

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 27, 2014

Well, no, a memory error will stop it dead. Pedro is ahead of me here :-)

Suggest an answer

Log in or Sign up to answer