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

I need to get all closed tickets

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 13, 2022

Hello, please advise. I really need your help :(
I need to get all closed tickets (from April 1 - July 1), but so that those that were created in the 1st quarter (from January 1 - to April 1) are also counted but closed in the 2nd quarter (from April 1 - July 1) .
Is this even possible with jql?

1 answer

1 accepted

3 votes
Answer accepted
Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 13, 2022

@Alex  Do you have multiple statuses for "closed tickets" or do you consider having a resolution as closed?

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 13, 2022

Hi @Dave Mathijs , one status for "closed tickets"- resolution - Done.

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 13, 2022

@Dave Mathijs 

I thought the JQL script would work:

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)

but it didn't work out

Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 13, 2022

Try

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)

so

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)

 

If it doesn't work, try building up your query creating 1 clause, then adding another.

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 13, 2022

Thank you !

Like John Funk 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 13, 2022 edited

@Dave Mathijs  Please tell me what should I add to the script so that it displays the rest of the statuses in the filter?

Безымянный.png

Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 14, 2022

Replace resolved by resolutiondate in your JQL query

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events