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?
Hi,
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.
Try this
assignee=currentUser() AND type!="Development Sub-task" ORDER BY status, updatedDate DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may try this:
1.
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")
2.
on Edit page of "Field_for_sorting" set "Number Range Searcher" Search Template
3.
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;
return 2;
4.
do reindex all
5.
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)
6.
be happy)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.