JQL with WAS NOT status DURING () showing issues created after date range

Corné Aussems March 18, 2023

Hello,

I am using a JQL for graphs this is my JQL :

"Epic Link" = FOO-143 AND Status was not Done during ("2022/06/01", "2022/12/31")

The result shows issues created in 2023 !

Of course these issues where not done in 2022 because they did not exist, but should they be in the result if they did not exist and if so how to exclude them

Since I use this in a JavaScript Chart for JIRA Cloud having time series "sum of existing issues)  adding createdDate < "2023/01/01" doesn't do it for me.


Any advise would be great.

C.heers



3 answers

1 vote
Oday Rafeh
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.
March 18, 2023

Hi @Corné Aussems 

If you're using a graph and want to query for each month separately,

You can use the createdDate filter in each query.

Here's how you can try to modify the JQL queries for each month:


"Epic Link" = FOO-143 AND Status was not Done during ("2022/06/01", "2022/06/30") AND created <= "2022/06/30"


"Epic Link" = FOO-143 AND Status was not Done during ("2022/07/01", "2022/07/31") AND created <= "2022/07/31"


...

"Epic Link" = FOO-143 AND Status was not Done during ("2022/12/01", "2022/12/31") AND created <= "2022/12/31"


By adding the created <= [date] filter for each query, you will exclude issues that were created after the specified date range for each month. 

I hope this will solve the issue 

Greetings 

Oday

0 votes
Corné Aussems March 18, 2023

OFC just including all other statuses do this trick, but then if someone adds one it is not included

"Epic Link" = FOO-143 and status was in (Backlog,"In Progress","In Testing","Waiting for actions")

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 18, 2023

Hi Corné

So why exactly can't you use the createdDate < "2023/01/01"?

Corné Aussems March 18, 2023

Hi John,

That is because the graph will query per month

"Epic Link" = FOO-143 AND Status was not Done during ("2022/06/01", "2022/06/31")
"Epic Link" = FOO-143 AND Status was not Done during ("2022/07/01", "2022/07/31")
..
"Epic Link" = FOO-143 AND Status was not Done during ("2022/12/01", "2022/12/31")


John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 18, 2023

You should probably contact the creator of the app then to get their guidance. 

Suggest an answer

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

Atlassian Community Events