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

Custom Jira Filter Sorting

I would like to know how to custom sort my JIRA filter results columns so different statuses show in an order other than ASC or DESC.

In my status columns I would like to be able to place all my closed issues at the bottom of my filter list while having my open at the top.  We have other statuses that I would like in between those.

So if I ordered by status I would like the filter to show tickets in order or Open, In Dev, In QA, and Closed

Is there a way to do this in advanced filtering?

 

5 answers

1 accepted

0 votes
Answer accepted

Which resolution do you use for Open, Dev, QA, Closed ? Open is normally Unresolved. You can use the Resolution for sorting. Starting with the Unresolved i.e. Open issues.

From the Stack Overflow question Custom 'ORDER BY' status in JIRA, the Status field has it's own sort order that is not governed by alphabetization, but by a custom order in as defined in Administration > Issues > Statuses (https://$JIRA_URL/secure/admin/ViewStatuses.jspa)

 

From there, you can reorder statuses up or down which governs how they show up when ordered in queries.

JIRA - Order Status.png

Thank you. That really helped a lot 

It is not possible but you can use a workaround. Set in those transition another customfield with some order values (1-9 or A-Z) and then do an order by on that field instead on the status field.

hanks Udo, Can you please explain in more detail? Are you saying you can have more than one field/column linked to a transition? So in the admin when I set up transitions from status Open to closed there is a way to also link Open transition to 1 and Closed to 2? Do you know where there are directions on how to do this?

Well, when you transition an issue to closed set in a post function a (new) custom field (named e.g. statusorder) to "Z". Do this in all transitions with an according letter so you get your desired order of your statuses. So an order by "statusorder" will result in the correct order of you status (closed as last, etc.)

Thanks Udo,

 

Can you please explain in more detail?  Are you saying you  can have more than one field/column linked to a  transition?  So in the admin when I set up transitions from status Open to closed there is a way to also link Open transition to 1 and Closed to 2?

Do you know where there are directions on how to do this?

 

When I try to do a sorting, it not showing in the order.. It shows, 1. 10, 11, 12,... 19, then 2, 20, 21...

How to fix this issue?

use 01 and 02 instead of 1 and 2

Suggest an answer

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

Calling all Jira Cloud users! Give us feedback on our exploration of a new navigation.

Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...

1,051 views 16 12
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