It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Creating a JIRA query to find tasks where the due date is within 7 days of the tickets creation

Howdy Folks,


I want to be able to isolate tickets created in Jira where the creation date of the ticket is within 7 days of the due date. I tried a couple of different queries for this that did not appear to work, so I thought I would see what the experts here might be able to suggest.




1 answer

0 votes

Hi @The Rebelminion - I don't think you will be able to run a plain JQL to bring the result-set you are looking for. We are not trying to pull tickets with a relative timing criteria here, like - tickets that are due in less than 7 days from now, or tickets created in the last 7 days and are due today, or something similar. 

Since you are looking at all the tickets (open/unresolved or otherwise, let's assume) that have a due date within 7 days of their created date, it means you are trying to find the days between two dates, and seeing if this is <= 7 days.

One way to handle this is to have a custom calculated field that stores the number of days between created and due date, and querying this would give us what we are looking for.

The other is to look at marketplace apps. Are you open to looking at apps? If you are, try scripted fields from ScriptRunner ( 

Here are some references from the past community posts -

Hope this helps!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

226 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you