Forums

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

Need filter for tickets not "status changed" for last 3 days excluding weekends

Ambrosino Salvatore February 1, 2024

 Anyone can suggest me a jql filter for tickets in a particular status with not "status changed" for last 3 days excluding weekends?  I found some thread with same problem but for "updated".  Status changed can accept just "after" and "before" instead of "<>". Thanks

2 answers

1 vote
Mehmet A _Bloompeak_
Atlassian Partner
February 1, 2024

Hi @Ambrosino Salvatore , welcome to the Community!

Below JQL excludes weekends. Hope it helps.

(not status CHANGED DURING ("-3d", now()) AND not status CHANGED AFTER startOfWeek())
OR
(not status CHANGED DURING ("-5d", now()) AND not status CHANGED BEFORE startOfWeek())

Ambrosino Salvatore February 5, 2024

hi @Mehmet A _Bloompeak_ thanks for your feedback, but doesn't work. I need that jql to integrate it in an automation that write a comment if a issue in status "Waiting Done" doesn't change in other status in last 3 days excluding weekend (Saturday and Sunday). With your jql appear issues from other projects also.

Mehmet A _Bloompeak_
Atlassian Partner
February 5, 2024

Hi @Ambrosino Salvatore ,

If you want to restrict it to a single project then you can prepend your project JQL into it as below.

project=YOUR_PROJECT_KEY AND

((not status CHANGED DURING ("-3d", now()) AND not status CHANGED AFTER startOfWeek())
OR
(not status CHANGED DURING ("-5d", now()) AND not status CHANGED BEFORE startOfWeek()))

Like # people like this
Ambrosino Salvatore February 6, 2024

Ok thanks. I will try it!

Like Mehmet A _Bloompeak_ likes this
wouter de wit June 10, 2024

Worked like a charm. Thanks.

Like Mehmet A _Bloompeak_ likes this
0 votes
Valeriia_Havrylenko_SaaSJet
Atlassian Partner
February 1, 2024

Hi @Ambrosino Salvatore 

You can use "NOT Status Changed AFTER" in your JQL query.

For example:

project=YOUR_PROJECT_KEY AND

((not status CHANGED DURING ("-3d", now()) AND not status CHANGED AFTER startOfWeek())
OR
(not status CHANGED DURING ("-5d", now()) AND not status CHANGED BEFORE startOfWeek()))

but i recommend you to try Time in Status for Jira , where in 2 clicks you can exclude weekends by calendars and filter data by issue or time ranges and get your report. All the reports you can display as PieBar or Area Charts.

Time in Status .png

Add-on has a 30-day free trial version and free up to 10 users.

You can also book a live demo - we'll show you the application inside out and answer all your questions.

Have a nice day 🥳

Ambrosino Salvatore February 5, 2024

Hi @Valeriia_Havrylenko_SaaSJet , thanks for your feedback, but doesn't work. I need that jql to integrate it in an automation that write a comment if a issue in status "Waiting Done" doesn't change in other status in last 3 days excluding weekend (Saturday and Sunday).

Valeriia_Havrylenko_SaaSJet
Atlassian Partner
February 6, 2024

@Ambrosino Salvatore This JQL should work 

Project=X AND ((NOT Status Changed AFTER -3d AND not status CHANGED AFTER startOfWeek())

 Hope it helps :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events