I have a custom-field "MONTH" with options: jan, feb,..,dec.
Now I want to sort by MONTH so that order will be jan,feb..... Is it possible?
Jira isn't clever enough to recognise abstracted names like that. I used to cheat by simply padding the names with empty space prefixes, but that's a bit horrid when you do it in JQL. For months, the only fixes I know of are:
I am not sure if this answer is covered by Nic's second case, but I have populated a second field with the sort order then using jql to sort by that column. The column does not need to be displayed to sort by it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Norman,
I am not getting - Can you please elaborate in more details?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's fourth valid way to do it - you create a new field called something like "sorted month", then use a plugin (script runner) to create a calculated field that populates it with 1 if your main field is Jan, 2 for Feb and so on.
Then your JQL could be something like "month in (Jan, Mar, Apr) order by sorted-month
(My third option was to write a field type plugin that gives you that works like any other select list, but has code that knows how to sort month names correctly. That is more coding than Norman's idea, but the JQL works more intuitively)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Nic for clarifying my terse description. Your description is exactly what I did and it took no more than 15 minutes to implement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I doubt it, since it will sort the content of that field alphabetically.
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.