Forums

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

JQL to see if Date1 = Date2

Chris Harris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2023

Hello,

I am trying to find all the issues that have Date1 = Date2.  So example would be

Project = ProjectX AND Type = Release AND Date1 = Date2

Of course it errors with Valid formats include: 'YYYY/MM/DD' etc

Is there a way to find issues in this scenario?

2 answers

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
February 21, 2023

Hi @Chris Harris,

Welcome to Atlassian Community!

You cannot compare two fields in out-of-the-box JQL, you would need an app that extends JQL with a function that allows you to do that. Based on this thread it looks like Scriptrunner can do this, and you should check out all the other apps in the Marketplace that extend JQL.

0 votes
Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2023

Hi @Chris Harris

Welcome to Atlassian community!

What @Mikael Sandberg meant was that Jira does not support comparing two dates which are custom fields in the JQL query.  You can use system date fields like 'created', 'updated', 'duedate', 'resolved' etc. to compare within the JQL query.

You can try comparing the custom date fields in the automation rules.

Thanks,
Vamsi

Suggest an answer

Log in or Sign up to answer