I have JQL query: assignee=currentUser() AND type!="Development Sub-task" ORDER BY updatedDate DESC
but i want to display status other than Completed first. Something like this:
assignee=currentUser() AND type!="Development Sub-task" ORDER BY status!=Completed, updatedDate DESC
how to do this?
you are able to order by the status, but the order of the different status is determined globally in the administration page of the status. If you change it there, it will be changed on every Jira-Screen.
You can't change it in your query only.
You can't sort status in a way you want to. There is a globally defined order of all the status in Jira.
If you sort your filter result by status, you sort it according to the global sort order defined by your JIRA administrator.
I don't think that you can achieve what you want, your sorting requirements are too complex and are not supported by Jira.
You may try this:
Create custom field "Field_for_sorting" - custom scripted field like "SIL Script Custom Field" (from free addon "Power Custom Fields")
or "Scripted Field" (from not free now "Script Runner for JIRA")
on Edit page of "Field_for_sorting" set "Number Range Searcher" Search Template
on Configure page of "Field_for_sorting" (for SIL Script Custom Field) make SIL Script for your needs.
example for your example:
if( status == "CCCCC") return 1;
do reindex all
make your JQL with ORDER BY Field_for_sorting ASC,updated DESC
(you not needed to include Field_for_sorting in columns of filter results, just use in ORDER BY)
Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...
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!
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