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,559,027
Community Members
 
Community Events
184
Community Groups

Using the resolution date filter in the right way

Heya,

I prepare a report every month concerning the performance of your scrum team. Additionally, I try to compare the numbers of 2020 to the years before. In order to do that, I use a filter on the resolution date.

So during the year I use resolution date filters like for example 'resolved >= 2020-03-01 AND resolved <= 2020-03-31' in order to prepare the report for march. At the end of the year I use the filter like that: 'resolved >= 2020-01-01 AND resolved <= 2020-12-31'

Problem: the results of the second filter exceeds the sum of the results of the individual months.

What am I doing wrong?!

3 answers

1 vote
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 12, 2021

TBH it is hard to say. I would step back from the numbers and rather export all issues from all filters into CSV and then look to Excel/Sheets to find where the delta is and then inspect them which should lead to the smoking gun. One other thing... you might consider this annual query

resolved >= startofyear() and resolved <=endofyear()

and if you run it in the following year and want previous year...

resolved >= startofyear(-1) and resolved <=endofyear(-1)

also consider using "resolutiondate" to see what it yields.

Sandra Enqvist
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!
Jan 30, 2023 • edited

1

0 votes
Joseph Johnston
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!
Apr 03, 2023

I added this in case some of you have created and closed tickets in an administrative way after the fact. While not ideal, it is sometimes the case. In this situation **JIRA has a bug**

If you manually set the closed date the filter will still use the ACTUAL date you resolved the ticket.

EXAMPLE: Looking at the ticket in JIRA WEB


Joe Johnston made changes - 20 minutes ago
Resolution Date 07/Mar/2023
Resolution Done [ 10000 ]
Status Production Validation [ 12007 ] Done [ 10004 ]

Excerpts from the same ticket's xml export here you see resolved is not represented in the data as any rational person might expect:

 
<created>Mon, 3 Apr 2023 09:13:14 -0400</created>
<updated>Mon, 3 Apr 2023 09:15:32 -0400</updated>
<resolved>Mon, 3 Apr 2023 09:15:32 -0400</resolved>
...
<customfieldvalues>
<customfieldvalue>Tue, 7 Mar 2023 00:00:00 -0500</customfieldvalue>
</customfieldvalues>

(Given = it is now April) Searching for tickets using the following

resolved < endOfMonth(-1) AND resolved >= startOfMonth(-1) 

or

ResolutionDate < endOfMonth(-1) AND ResolutionDate >= startOfMonth(-1) 

this ticket will NOT show up until I do the May run. It's just broken. No matter how JIRA does it behind the curtain JIRA's own filters should be able to decipher it's own structure.

I hope I am wrong and I can be corrected. 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 31, 2022

Hi @Simon von Pock , quotes are not required for dates in a JQL. Are you experiencing something different with and without quotes?

Like Yosef Arbiv likes this

Suggest an answer

Log in or Sign up to answer