Hi, I would love some help with an Order-By question. I would like to Order-By-Date when an issue is moved to a specific status.
I have a Kanban board which covers two analyst teams and several development teams. Each team has their own board and we are also having an end-2-end board. When an analyst is done, they are moving the issues to Ready-For-Dev status which can be seen as Done for the analyst and the Backlog for the developer. The developer shall work FIFO – First-in First-out, so they have an interest in having the issues ordered by the date they are moved to Status-X. Status-X do not have to be the same status as Ready-For-Dev, it can be another.
I have tried with a filter at the board containing: ORDER BY updated ASC. It works, but have a major drawback. When someone adds a comment, it receives a new date and comes lowest in the FIFO-list.
An alternative is to create a date field, which is (manually?) updated when an issue is moved to Status-X. I do not like this solution since there will be cases an issue is not updated with the date.
Any suggestions?
Doesn't
ORDER BY statusCategoryChangedDate DESC
kind of work?
Does for me, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OMG this is fantastic.
Magnificent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for pointing out that field. That can work for Jira Cloud users.
However this is not a feature that is available to Jira Server or Jira Data Center at this time. This appears to be a relatively new JQL feature. We do not have this field in documentation at the present time, but I am working on correcting that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira does track transition date/times, but is not doing this in a manner where that data is stored to a custom field that JQL can then order by. As you found, the 'updated' kind of works, but isn't ideal since any change to the issue will count as an update to the issue.
In my view what is needed here is a custom field that will store the date/time those issues where transitioned to a specific status. That way Jira's JQL can properly order the issue by that custom field. Jira natively does not provide a way to auto-populate this kind of field though.
There are lots of 3rd party plugins to Jira that could be used here in order to provide some kind of solution. I think the simplest way to do this would be to use a plugin though such as the Jira Misc Custom fields plugin. The reason I focused on this plugin is that it provides the ability to then create a new custom field type called "Transition Date/Time Field" By using this kind of field on this project, you can then order by this specific field name. That way you could keep the issues on that board specifically ordered by the time they were transitioned to that status, and not by when the issue was last updated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Andy,
Good to have someone else opinion. Seems like the date approach is the best even if I am not a big fan of adding extra manual work in the process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately this plugin is for "server only". If we're using JIRA cloud, there doesn't seem to be an equivalent... anyone knows of one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If Jira really doesn't track transition times, how come Jira is able to show when issues transitioned in the issue history? And also how come it is possible to filter issues by `status changed AFTER startOfMonth()`?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have this 'Time in Status' field. It seems to contain an accurate value, however, when I included it with as a ORDER BY "Time in Status" DESC, it still shows up in an apparently random order.
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.