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,294,792
Community Members
 
Community Events
165
Community Groups

JQL Can't get all statuses

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? :(

2 answers

1 accepted

3 votes
Answer accepted

Hi @Oliver Smith 

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

@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)

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
Like Bill Sheboy likes this
0 votes

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
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you