I tried to delete a user but got an error message:
Cannot delete user. 'user ' has associations in JIRA that cannot be removed automatically.
Change the following and try again:
Does anybody know how I can find this association? When I search for comments that contain that user name, I get too many.
Of course I can deactivate the usser but still I'm interested in a solution for the problem mentioned in the error message.
Do not delete users. Inactivate them. Deleting them can cause errors when JIRA tries to resolve any action they took in an issue. It stores the database id, not their name in issues. Inactivating them releases the license. I assign all inactive users to a group named inactive for easy reference.
Enforcing this is actually a fairly recent change in JIRA. That is, it used to let you do this., but this causes a lot of problems! What happens when you look at the issue later? Should the comment be visible still, or should it be deleted with the user? If you delete the comment too, then this alters what happened to the issue, and other people that still exist might have responded to that comment. If the comment disappears, that would be really confusing. Where is the comment that all these people are responding to? So if the comment stays there, then what do we display for it? If the user is fully deleted, then do we say the comment was displayed by "Anonymous"? But that's a lie... So if we can't do that, then what do we display instead? It goes on and on and on. Over the years, what we have learned the hard way and the overall direction we have taken is that deleting a user means you created them by accident and they were never real and never did anything meaningful. Everything else just plain gets too complicated to be worth messing with. We do try to make sense of it, but it is a hard problem, and I am never surprised when we (or a plugin vendor) makes a mistake when it comes to deleted users. So +1000 to Joe here. If we are talking about a legitimate user who is simply no longer with the company or something along those lines, then deactivate them instead of deleting them. It keeps history intact and it is clear what has happened and everything just plain makes sense. If we are talking about a user you created by accident who hasn't done anything yet, then by all means delete them.
I agree with Joe. However, if you still want to do it, I would try the following rather pragmantic approaches:
1) open the users Profile and browse through his activity Stream.
2) use the dashboard activity stream and try the filter mechanics to rule out as much irrelevant info to ease the search for the particular comment
3) if possible and within your comfort zone, you could look it up in the Database directly.
4) it could be that there is an issue function for this within Scriptrunner.
Unfortunately I'm currently travelling, otherwise I would have gladly presented you with more details and documentation.
I hope it helps you nevertheless.
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
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!
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