Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,830
Community Members
 
Community Events
184
Community Groups

How do I find issues that had a status of Open or In Progress in Past Weeks

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

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 04, 2023

Hello @Gloria.Galvez-Sanchez 

Welcome to the Atlassian Community!

You can use the WAS IN operator with the DURING predicate.

https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/#Advancedsearchingoperatorsreference-WAS

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

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 04, 2023

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?

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

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 05, 2023

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.

Like Gloria.Galvez-Sanchez likes this

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events