Question

Has anyone had luck with removing large amount of issues from a jira database instead of using the frontend? Deleting 60000 issues with the bulktools is not really feasible.

Last time I tried it, the jira went nuts because of its own way of doing indexes.

Was it helpful?

Solution 2

We got gutsy and did a truncate on the jiraissues table and then use the rebuild index feature on the frontend. It looks like it's working!

OTHER TIPS

How about doing a backup to xml, editing the xml, and reimporting?

This is old, but I see that this question was just edited recently, so to chime in:

Writing directly to the JIRA database is problematic. The reindex feature suggested in the Oct 14 08 answer just rebuilds the Lucene index, so it is unlikely to clean up everything that needs to be cleaned up from the database on a modern JIRA instance. Off the top of my head, this will probably leave data lying around in the following tables, among others:

  • custom field data (customfieldvalue table)
  • issue links (issuelink table)
  • versions and components (nodeassociation table, which contains other stuff too, so be careful!)
  • remote issue links or wiki mentions (remotelink table)

If one has already done such a manual delete on production, it's always a good idea to run the database integrity checker (YOURJIRAURL/secure/admin/IntegrityChecker!default.jspa) to make sure that nothing got seriously broken.

Fast forwarding to 2014, the best solution is to write a quick shell script that uses the REST API to delete all of the required issues. (The JIRA CLI plugin is usually a good option for automating certain types of tasks too, but as far as I can tell, it does not currently support the deletion of issues, so the REST API is your best bet.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top