Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JQL for comparing due date to created date

We have a 5 business day SLA for new user provisions, I need a JQL query to see tickets where Due Date is less than Created Date plus 5 days 

1 answer

1 accepted

3 votes
Answer accepted
Mark Segall Community Leader May 20, 2022

Hi @pastora - Unfortunately, JQL does not natively support comparing two dates.  You could go about this two ways:

  1. Use a 3rd party app like Scriptrunner - Here's a similar question:
  2. Revisit how you're using Due Date - You could leverage an automation rule that triggers on issue creation and sets the Due Date to 5 days from creation.  Then you can perform relative queries against the Due Date rather than trying to compare to another field.

Suggest an answer

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

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

303 views 15 10
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