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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

725 views 3 11
Read article

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