Hi,
Back in November I raised a feature request [FR] Refactor the ordering of User Stories that are attached to an Epic, for example by Status · Issue #210 · taigaio/taiga-back · GitHub where I was trying to understand how stories are ordered when they are ‘related’ to an epic.
As noted there: I can see that you can manually drag/drop related stories in an epic to change their order.
What I don’t understand is what I’m seeing in the database when I do that, in terms of what happens to the order column.
It seems it starts out as a timestamp (probably the timestamp of when the story got ‘related’ to that epic), yet moving stories also affects the surrounding stories’ order column value, and sometimes even sets it to 0.
Putting aside how it currently works, I wanted to ask a more simple question: if I were to write a script that periodically orders by the stories by their story status, meaning that I explicitly change the order column to be a simple 1, 2, 3 ,4 sequence (not ‘timestamps’), is that safe? (that is, that ‘order’ column has no other semantic meaning despite (sometimes? but not always?) appearing to be a timestamp? It won’t affect ‘dates’ associated with the stories in any way?
My plan is to use the API to join the story IDs to get their status (e.g Complete, In Progress etc) and then order those story IDs according to a company policy (we want ‘Complete’ stories at the top of the epic so we can jump to the bottom to look at the ‘In Progress’ ones, for example). I’ll run that script periodically on epics via cron or similar means.