comparing "updated" field to a custom datetime field

I have a defined a custom field to store date time. The intent is to compare this field to the standard field "updated" in certain queries.

Search/JQL allows either field to compare to a date time string like "2013-03-04 18:15". (not sure why it does not take second - but that's another question)

However, when I have a comparison like updated >= "my datetime field" , I get a validation error:

Date value 'updated' for field 'my datetime field' is invalid. Valid formats include: 'yyyy/MM/dd HH:mm', 'yyyy-MM-dd HH:mm', 'yyyy/MM/dd', 'yyyy-MM-dd', or a period format e.g. '-5d', '4w 2d'.

Is there some other particular date time type I should use?

Or is there a JQL date time conversion function I can use?

TIA.

1 answer

In this case I would activate SQL Logging in Jira. In the log file you can trace which statement is executed. There you will find a hint about date formats which are used during comparism.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

35 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you