It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

1 vote
Andy Heinzer Atlassian Team Sep 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.

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.

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?

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

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.

0 votes

Doesn't

ORDER BY statusCategoryChangedDate DESC

kind of work? 

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you