You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
How do I find issues that had a status of Open or In Progress in the week of 3/20 to 3/24 when I am running this on 4/4/2023?
I am new to JQL but I was able to get those working for the past week for closed tickets (resolved >=-8d and resolved<=-1d)
Any help would be appreciated.
Thank you,
Gloria
Hello @Gloria.Galvez-Sanchez
Welcome to the Atlassian Community!
You can use the WAS IN operator with the DURING predicate.
status WAS IN ("Open","In Progress") DURING ("2023/03/20", "2023/03/24")
Hi Trudy,
Thank you for your answer but I am trying to use relative dates.
Could I do DURING (-2w, -1w) :( I know is silly but I just don't have a clue. I tried a few things like and status CHANGED TO "Closed" AFTER startOfWeek(-14d) and status CHANGED TO "Closed" BEFORE startOfWeek(-7d) I am still testing this.
gg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Gloria.Galvez-Sanchez
Yes, you can use relative date operators with DURING.
Is this a filter you will need to run many times?
Would you run it on a consistent schedule so that your data range would be consistently relative?
What do you want to do with the output?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am actually using Python JQL package and yes it will be run every Monday for the week before, the week before that and so on for 4 weeks period. This is to update some graphs in PowerPoint
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the additional information.
I was going to suggest using an Automation Rule to run the report, but it sounds like you don't need that if you are using python code to automate running it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to extract issues resolved on a certain week for current week - 1, -2, -3, etc.
AND resolved >= startOfWeek(-3w) AND resolved <= endOfWeek(-3w)
also using DURING as you suggested
WAS IN("Open","In Progress") DURING (startOfWeek(-1w), endOfWeek(-1w))
they worked.
Thank you very much Trudy.
gg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.