How to simplify this JQL query to find recently completed tasks by a set of users?

How to simplify this JQL query to find recently completed tasks by a set of users?

 

project in (PROJECT1, PROJECT2) AND status in (Resolved, Closed, Fixed) AND assignee was in (user1, user2) after startOfWeek(-7d) AND status changed after startOfWeek(-7d) AND (((status changed to Resolved by user1) OR (status changed to Closed by user1) OR (status changed to Fixed by user1)) OR ((status changed to Resolved by user2) OR (status changed to Closed by user2) OR (status changed to Fixed by user2))) ORDER BY updatedDate DESC, priority DESC

1 answer

0 votes
Rachel Wright Community Champion Jun 30, 2017

Hi Qi, can you use the presence of a resolution in your check rather than a list of statuses?  Also, can you create a group for your list of users?

Try something like this:

project in (PROJECT1, PROJECT2) AND resolutiondate > startOfWeek(-7d) and resolution changed by membersOf("your-group-name-here") and resolution is not EMPTY ORDER BY updatedDate DESC, priority DESC

Hope this helps,

Rachel Wright

 

In my real application I need to expand (Resolved, Closed, Fixed) to (Resolved, Closed, Fixed, CUSTOM_STATUS1) and include into the condition (status changed to CUSTOM_STATUS1 by user1)

The "CUSTOM_STATUS" is an unresolved intermediate state, so your solution won't work.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,799 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot