Delete completed demo sprint because useless and empty

Hello

For training reasons you create a demo project with a demo scrum board a demo sprint, then you start the sprint and then you complete it. When the training is over you delete the board and the project but the sprint aren't deleted and remain "alive" in the system, at the moment we have about 25 useless "Sprint 1"! How can those zombie sprints be annihilated? I know that it can't be done from the UI, I mean annihilate them in the db.

Thanks

1 answer

I have deleted them from the db, but it wasn't really simple, because a lot of "demo" rapid boards were still in the database (Why? They had been deleted, they weren't anymore visible in the UI!) and to delete them you have to delete a lot of entries in many tables due the foreign key constraint.

I always wonder, why the DB experts never use the "on delete cascade" option in the foreign key constraint, this option is exactly though for such cases, to don't have to delete hundred of rows in dozen of tables to delete only one entry in one table. When the model is a (UML) composition, namely the object owns the parts, which alone don't make any sense, and the object is disposed (deleted) also the parts must be disposed (deleted).

The "on delete cascade" option has two great benefits, first it maintains consistency in the database, because it takes care to delete the parts if the object is deleted, and second it reduces the traffic to the database, because you have only to send one delete statement and not twenty delete statement and perhaps twenty select statement before them.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

456 views 7 5
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you