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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot