JIRA JQL Search exclude time from Created and Created Date fields

Trying to search for issues ordering by create date then a custom field. The problem that occurs is that the secondary order is not done the way the users will want because the created contains a timestamp which could be throwing it off.

I want the issues ordered by date, then I want the platforms (MFB,MFA,MFD) to be grouped together. But my issue results list everything by date as we want but since the time the issues were created is different the platforms aren't grouped together

Example query for the above: project = Test and resolution = unresolved order by created desc, platform desc

Of course you can't order by platform because the issues won't be in chronological order.

Any way to achieve what I need?

2 answers

Adding as a comment instead of an answer in case this doesn't work - as you've said, the problem is that the Created field is a date & time, so I think your solution would be to create a new Created Date custom field (that is just date as opposed to date & time), and on a post function of the create step in the workflow copy the value of Created to your new custom field, and use that in your query instead. This could be a lot of work, sorry...hopefully someone else will reply with a cleaner and more efficient solution. :)

Hi Natalie,

I think behind the scenes a hidden time stamp is added on date custom fields. If you pull the value it will list the date and a 12am time stamp.

I just took a look at some custom date fields in my instance, and the secondary groupings are working off date just fine (and not date & time). If you don't find any other solution you might want to give my suggestion a try. :)

I will give that a try. Our goal was to avoid applying a custom field to all the screens in our instance to allow for this sort of option. We will give it a try to a particular one we have setup.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

216 views 1 18
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