I want the JQL query to automatically filter the issues from last Wednesday to this Thursday.

Yu Ke _York_ June 7, 2023

Currently I cannot specify a time interval which automatic updates.

For example, if I open JQL on Friday, June 9, it will automatically filter all issues from May 30(last Wednesday) to June 7(this Thursday).  And I don't want the issues from June 7 to June 9 in the JQL.

 

I hope to get your help :)

2 answers

2 accepted

2 votes
Answer accepted
Evgeniy
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 Leaders.
June 7, 2023

If I understood right, you need something like this:

created > startOfWeek(-4d) AND created < startOfWeek(4d)

Yu Ke _York_ June 7, 2023

Yes that's exactly what I need, thank you!

Like Evgeniy likes this
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 13, 2023

did not think about using startOfWeek().

Better than my solution!

1 vote
Answer accepted
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 7, 2023

Do I understand your requirement correctly?

This friday you need:
created > 2023-05-30 AND created < 2023-06-08

And next friday you need:
created > 2023-06-06 AND created < 2023-06-15

But you want to to be dynamic so you have a new result every week?

If you only run it on Fridays you could do something like this:
created > endOfDay(-11) AND created < endOfDay(-2) ORDER BY created ASC

Yu Ke _York_ June 7, 2023

Thanks for helping! :D

Suggest an answer

Log in or Sign up to answer