Order-By-Date when an issue is moved to a specific status.

Lennart Wemlén September 19, 2017

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?

2 answers

4 votes
Harm Zeinstra August 13, 2020

Doesn't

ORDER BY statusCategoryChangedDate DESC

kind of work? 

Steven Carroll January 25, 2021

Does for me, thanks!

Robyn Backhouse February 3, 2021

OMG this is fantastic. 

Magnificent.

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2021

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.

Alex April 10, 2021

Great, thanks. If there's a feature request provide the link and I will vote for it!

2 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2017

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.

Lennart Wemlén September 21, 2017

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.

Deleted user June 13, 2018

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?

garik.suess December 9, 2019

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()`?

magnuslu May 10, 2020

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.

Suggest an answer

Log in or Sign up to answer