Delete completed demo sprint because useless and empty


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.


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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
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