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?


1 answer

This widget could not be displayed.

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
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

37 views 0 1
Join discussion

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