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

This widget could not be displayed.
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
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

79 views 0 1
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