It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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?

3 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.

0 votes

since this is over 6 year's old, I'm wondering if there has been any other solution developed (other than custom date-only field)? Looking to get listing sorted by Assignee within Created-date.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

260 views 1 2
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you