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
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,095 views 0 8
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