Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

How to compare two different time values using JQL

onionwang I'm New Here Jul 07, 2021

Hello Everyone ,thanks for your time.

Our issue has two userdefined time values,one named  “planned finish date”,and the other is “actual finish date” .

Now my problem is i want to find the issues which “actual finish date”  is later than “planned finish date”.

When i use “actual finish date”  >=“planned finish date” in JQL,i got a  tip saying format error. Please tell me how to resolve this problem.

1 answer

1 accepted

1 vote
Answer accepted

Hi @onionwang - JIRA's native JQL feature does not let you to compare dates, but with script runner you can do it. Try the below JQL (works only if you have script runner installed)

issueFunction in dateCompare("project = ABC", "updated > Resolved")

onionwang I'm New Here Jul 07, 2021

Thank you very much!I have successfully  resolved this problem with your help! 

Suggest an answer

Log in or Sign up to answer
TAGS

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