The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Re-opened jira not appearing in jql

Saju
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2022

I trying to run a query to get all the records that are in opened/unresolved state from last year, which means it excludes all issues that are closed the previous year. Here is the query I am using

project IN (x,y,z) and labels in ("a","b") and not status changed to (Closed, Resolved) before startOfYear()

with above I am almost getting all the result, but I see that few of the jira that were closed last year but got re-opened and resolved/closed this year does not appear. looking for some help

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Alexander Bondarev
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 Champions.
February 20, 2022

Hi @Saju !

Welcome to the Community!

If I correctly understand your case, try this query:

project IN (x,y,z) and labels in ("a","b") and createdDate >= startOfYear(-1) and createdDate <= endOfYear(-1) and resolution is EMPTY

 You will see all issues that were created in the last year and still have not been resolved.

0 votes
Saju
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2022

Hi Carlos, it was re-opened and there was a second fix applied and closed this year. So eventually the status is closed. So basically the same jira ticket is closed twice, once last year and again this year. What it appears is, my current query picks up the first close. Not sure

0 votes
Carlos Garcia Navarro
Community Champion
February 19, 2022

Hi @Saju ,

What is the status in your workflow when you reopen a ticket? Maybe 'Reopen' or 'Open'? If so you could include one of these clauses:

'OR status changed from Closed to Reopen'

'OR status changed from Closed to Open'

Carlos Garcia Navarro
Community Champion
February 20, 2022

I'm curious...If you run

'project IN (x,y,z) and labels in ("a","b") and status changed to (Closed, Resolved)'

,do you see these issues there?

Can you please attach a screenshot of your workflow, and double check if the status of the tickets that were reopened and closed have the status 'closed' or 'resolved'? Thanks!

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events