Basically I want to find out which users can be safely removed from my JIRA instance.
An additional requirement is to not only find users which have no reported or assigned issues but also users that are referenced by a project role or permission scheme.
I assume that I can do something like this only via a custom SQL query.
An addition to the question would be what happens if I delete a user that still has incoming references in the database. I guess there are more references than just "reported/created", "assigned", "project role" or "permission".
An analysis of the users that are actually referenced in a JIRA instance can be made with reasonable effort based on the full XML export/backup.
This file can be processed using a simple script (e.g. Groovy) and you can use XPath to query for user references. Currently I'm using the following set of XPath's:
Nice trick, I've always ploughed through the SQL
If you use the standard "delete user" in Jira though, it'll hoover out project roles and groups, so you may not really care about them. You might also want to scan the workflows (although using a nominated user in a workflow is a dodgy thing to do) and check the user's name is not used in any "user picker" custom field data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.