JQL Can't get all statuses

Alex
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.
May 15, 2022

SHOWS ONLY CLOSED tickets (BY the condition I need *JQL below), BUT DOES NOT SHOW - "OPEN", "WAITING" etc.. (from April 1 to July 1)

project in (TOPPROV, ABC) AND (created >= 01/01/2022 AND created <= 07/01/2022) AND assignee in (I.shangarev, t.petrakov) AND (resolved >= 04/01/2022 AND resolved <= 2022-07 -01)

*"receive all closed tickets (from April 1 to July 1), but in such a way that those that were submitted in Q1 (from January 1 to April 1) but closed in Q2 II (from April 1 to July 11) are taken into account ".    WHAT IS WRONG IN MY JQL? :(

3 answers

1 accepted

3 votes
Answer accepted
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.
May 15, 2022

Hi @Alex 

If all of the other query criteria apply, you could alter the query slightly to do that:

project IN (TOPPROV, ABC)
AND (created >= 01/01/2022 AND created <= 07/01/2022)
AND assignee IN (I.shangarev, t.petrakov)
AND (
(resolved >= 04/01/2022 AND resolved <= 2022-07 -01)
OR
resolved IS EMPTY
)

Kind regards,
Bill

Alex
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.
May 15, 2022

@Bill Sheboy  Hi!)

WHERE "RESOLVED EMPTY" is a good solution... but the status (waiting to open..) should not count (from Jan 1-July 1)
:(
he must count from (from April 1-July 1)

all statuses except close should be considered for the second quarter)

Alex
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.
May 16, 2022

SOLUTION!!! (slightly changed the script)

 @Bill Sheboy 

project IN (TOPPROV, ABC)
AND (created >= 2022-01-01 AND created <= 2022-07-01)
AND assignee IN (i.shangarev, t.petrakov)
AND (resolved >= 2022-04-01 AND resolved <= 2022-07-01)
OR project IN (TOPPROV, ABC)
AND (created >= 2022-04-01 AND created <= 2022-07-01)
AND assignee IN (i.shangarev, t.petrakov) AND resolved IS EMPTY )

 

Like Bill Sheboy likes this
Alex
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.
May 16, 2022

@Bill Sheboy THANK YOU :)

Like Bill Sheboy likes this
0 votes
Vikram Sathish ASOKAN
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2022

You can try the below 

project IN (TOPPROV, ABC)AND (created >= 01/01/2022 AND created <= 07/01/2022) AND assignee IN (I.shangarev, t.petrakov) AND ((resolved >= 04/01/2022 AND resolved <= 2022-07 -01)OR resolved IS EMPTY)

0 votes
William Hui May 15, 2022

Is this what you are looking for?

project in (TOPPROV, ABC) AND assignee in (I.shangarev, t.petrakov) AND ((resolved >= 04/01/2022 AND resolved <= 2022-07 -01) OR (created >= 01/01/2022 AND created <= 07/01/2022))

Suggest an answer

Log in or Sign up to answer