Forums

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

Tasks delivered late

Marcus Pires August 24, 2020

Lets say that I need to know everything that has been delivered late in the past.

how would my query be?

1 answer

0 votes
John Funk
Community Champion
August 24, 2020

Hi Marcus - Welcome to the Atlassian Community!

There is no out of the box function with JQL to compare dates like that. You can use something like ScriptRunner to do that. 

Or you can create a custom number field and populate with the difference of the two date fields when the issue is delivered (using something like Automation For Jira or ScriptRunner or JMWE for workflows). Then you create a report where the custom field is > 0 (or < 0 depending on how you are writing your script). 

Marcus Pires August 24, 2020

I understand John, but which fields should I compare?

targerEnd and ???

John Funk
Community Champion
August 24, 2020

Due Date and Resolved (or if you use a different custom field for the delivery date). 

Marcus Pires August 24, 2020

i tried 

project = PP  AND DueDate < Resolved

but doesn't work

John Funk
Community Champion
August 24, 2020

No - see my note above - you cannot directly compare two dates in JQL out of the box. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events