The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL for issues due one month before due date

Scott McDonald
Contributor
October 23, 2019

I'd like to create a filter for issues due one month before due date?  I've tried using a variation of syntax such as 4w, startOfMonth() and others but everything I try seems to pull back greater than one month.  

 

The ultimate goal is to use Automation to add a label to tickets one month before due date.

 

Thank you,
Scott

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Arthur SALMON
Contributor
October 23, 2019

Hi,

 

I think you could use something like : duedate > -30days

That will return all issue than due in less than 30 days.

Scott McDonald
Contributor
October 24, 2019

Hi @Arthur SALMON 


That logic returns tickets due in January, which I do not want.  I modified it to duedate < 30days but I don't know if that will grab everything I need.  

Arthur SALMON
Contributor
October 24, 2019

Hi @Scott McDonald 

This should do the trick, you will only get the issue due during the next month (not the ones before than the current day and the the ones in more than 30 days)

duedate > 0days AND duedate > -30days AND NOT duedate > 30days

Like # people like this