I'm trying to create a filter that does the following:
Return all issues where the due date is 2 weeks less than the current date, or lower.
But I'm stuck trying to substract to achieve something like this:
now() + 2w > duedate
But that obviously doesn't work. Any elegant alternative for this?
try following:
duedate < startofday("+2w")
have not tried now("+2w") but may be is is working as well
Actually, this is not quite what I want. The filter would not include all the desired issues. The correct filter would be:
startOfDay() >= duedate("-2w")
But unfortunately, this doesn't work...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so you want all issues that have the duedate in 2w from now, or? Try: duedate >= startOfDay("+2w") and duedate <=startofday("+15d")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's difficult to put this into words. Say you have an issue, and the current date is "01/09/2014". The due date is "15/09/2014". The issue should be in the filter. But it should also be in the filter when the current date is "16/09/2014". But it should NOT be in the filter if the current date is "15/08/2014". I hope you understand what I'm trying to achieve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So all issues with duedate in 14 days or less or duedate is passed, correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, exactly.I was thinking this should work, but it still includes issues where the due date is higher than the current date + 2 weeks: (duedate > startOfDay("-2w") OR duedate < startOfDay())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so it should be duedate < startofday("+15d")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
glad I could help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! This pointed me in the right direction, and the filter I require is:
duedate > startOfDay("-2w")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.