JQL How does "Was" operator work with status field?

I have problem with JQL query which uses "was" operator with "status" field.

For example I have 10 issues (only one time resolved)

Issue     Resolved date  
ISSUE-1   2013-03-15 
ISSUE-2   2013-04-05
ISSUE-3   2013-07-10
ISSUE-4   2013-11-11
ISSUE-5   2014-01-13
ISSUE-6   2014-01-15 
ISSUE-7   2014-02-05
ISSUE-8   2014-03-17
ISSUE-9   2014-05-05
ISSUE-10  2014-07-30

and queries

Query 1

status was Resolved by "username" DURING ("2014-01-01","2014-01-30")

which returns issues

ISSUE-1,ISSUE-3,ISSUE-4,ISSUE-5,ISSUE-6

Query 2

status was Resolved by "username" BEFORE "2014-01-30"

which returns issues

ISSUE-1,ISSUE-2,ISSUE-3,ISSUE-4,ISSUE-5,ISSUE-6

In documentation is written:

The "WAS" operator is used to find issues that currently have, or previously had, the specified value for the specified field.

so DURING and BEFORE should return the same results but as I see they don't or maybe I'm wrong and DURING should return only issues ISSUE-5 and ISSUE-6. These are only example issues but what can be wrong in my real JIRA which works very similar?.

I reindexed issues but it didn't help.

I have JIRA sources but I cannot find where it is implemented, then I would check it. Maybe somebody knows, I would be grateful.

Thanks for any response.

Andrzej

1 answer

1 accepted

For issue-5 the status was during ("2014-01-01","2014-01-30") resolved. But after that period it still was resolved.

What you are looking for is

Status changed to resolved during ("2014-01-01","2014-01-30")

Yes indeed, "changed" operator is much more predictable. This is what I needed.

Thank You.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

691 views 6 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you