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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need help with a query to show "closed" tickets in last 7 days

Good morning,  I need some assistance. I have a query:

project = xxx and status changed TO closed after -7d

Which has been working fine up to the date that our Org changed our jira workflow.

Tickets no longer "close" they "Deploy to Prod" - so I thought I could change the query to

project = hre and status changed TO "Deployed to prod" after -7d

However, I am getting hundreds of results that go back to last year. 

I suspect that since the query is looked at the CLOSED DATE field but we are not using a CLOSED its not pulling back based on the 7 days I have in my query. 

I would normally try "resolution" but, we add a resolution in the middle of the workflow once the work is "Dev Complete".

I've played around with some other scenarios but none seen to be working. Would love some suggestions. 

 

thanks!

2 answers

0 votes
Alexis Robert Community Leader Jan 26, 2021

Hi @Kimberly Rogers ,

 

I would maybe look at the updated date in order tu pull only recently closed tickets, and also add a criteria DURING instead of AFTER :

updated >= -7d and status changed TO DONE DURING (startOfWeek(),now())

 

Let me know if this helps, 

 

--Alexis

Unfortunatly this didn't work, status changed to "done" even when I increase the parameters, doens't pull anything - and if I changed to: status changed to "closed" or status changed to "deployed to prod" I get results. Seems to not like status changed to Done 

0 votes

Hello @Kimberly Rogers ,

 

Welcome to community. Please try this below.

status changed to Done during (startOfDay(-7), endOfDay("-7")) ORDER BY updated DESC

Thanks,

Got similar results as above. Doesn't seem to like status changed to Done

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you