Filter Not Returning Correct Results

Here is the filter I am trying to use. Clearly I could break them up but I was hoping to combine them into one. 

Does JQL not support more complicated queries?

 

project = SRFS AND resolution = Unresolved AND (("CB Complete?"=No AND "CB"> 0 AND "CB Due Date">= startOfWeek(-1) AND "CB Due Date"<= endOfWeek(-1)) OR ("PWD Complete?"=No AND "PWD" > 0 AND "PWD Due Date">=startOfWeek(-1) AND "PWD Due Date"<= endOfWeek(-1)) OR ("RTL Complete"=No AND "RTL"> 0 AND "RTL Due Date">= startOfWeek(-1) AND "RTL Due Date"<= endOfWeek(-1)))

1 answer

1 accepted

This widget could not be displayed.

Filter should work, I've had filters a lot more complicated than that.

Are you missing data at the end of weeks?

It's possible that endOfWeek() returns a timestamp at midnight and the "<=" will only include issues with the timestamp of exactly midnight (start of day) and not timestamps during the whole day.

No. I created an issue that supposed to have a due date of today, and its not catching it. Maybe I should just try -7d instead and see if that unbreaks it

But endOfWeek(-1) would return midnight last Sunday/Monday, so this new ticket would fall outside the time window, right?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday 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...

151 views 1 3
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