Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

JQL not working for status in (Coding) during a period

Cash Coyne
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 Leaders.
February 16, 2024

I have this JQL:

project = IM and summary ~ "Model" and status was in (Coding) during ("2023-11-21","2024-02-10")

It returns many issues that were not in a status of "Coding" between those dates. In fact, many were in Coding in 2022!

Any idea what I'm doing wrong here?

4 answers

1 accepted

3 votes
Answer accepted
MD
Contributor
February 16, 2024

Hi @Cash Coyne 

I understand your confusion. I'm uncertain about the behavior of "WAS IN," and the response provided by Jira may offer some insight, although I find it challenging to comprehend.

This operator will match the value name (e.g. "Resolved"), which was configured in your system at the time that the field was changed. This operator will also match the value ID associated with that value name too — that is, it will match "4" as well as "Resolved". 

https://support.atlassian.com/jira-software-cloud/docs/jql-operators/#WAS-IN 

As an alternative - I suggest to use "Changed to" operator:

project = IM and summary ~ "Model" and status CHANGED TO "Coding" during ("2023-11-21","2024-02-10")

Hope it helps ;)

Regards,
M

Cash Coyne
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 Leaders.
February 16, 2024

That worked! Thank you @MD !

Like MD likes this
0 votes
Bill Sheboy
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 Leaders.
February 16, 2024

Hi @Cash Coyne 

My understanding is this is a known problem if there are (or have been) team-managed projects used in the site with a status of the same name.  The work-around noted in a few open defects is to use the status value's id rather than its name.

https://jira.atlassian.com/browse/JRACLOUD-70797
https://jira.atlassian.com/browse/JRACLOUD-81443
etc.

Kind regards,
Bill

0 votes
Uday Kiran Bhaviri
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 Leaders.
February 16, 2024

The return issues may not have the current status as 'Coding' but they might have 'Coding' during that period.

And you are searching records from 21 Nov 2023 to 10 Feb 2024. But saying there were many records in 2022. I didn't get that.

Cash Coyne
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 Leaders.
February 16, 2024

Please see my response to @Trudy Claspill with a screenshot showing a retrieved issue that was in coding only from 5/19/22 to 5/20/22 which is not in the range I requested.

0 votes
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.
February 16, 2024

Hello @Cash Coyne 

Can you show the full issue history for an issue that is included that you think should not be included?

Is this for a Company Managed project or a Team Managed project?

Cash Coyne
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 Leaders.
February 16, 2024

This is company managed project.

Here is the History of an issue that I don't think should have been retrieved with this JQL:

image.png

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events