During Jira Integrity Check, I see errors showing that several Agile Board Card Colors refer to missing users. I remove the users from the board Card Colors configuration, but after some time the references appear again.
Has anyone seen this behavior before? What is the correct way to permanently remove these missing user references and prevent Jira from recreating them?
Hi @David Shahbazyan ,
It might be that Jira automatically keeps color entries for users who are, or have been, assignees of issues on the board. Because of that, simply removing the user from Board settings → Card Colors may not be permanent if Jira still finds references to that user in issues covered by the board filter.
As for missing users, I'm guessing you mean deleted ones?
I haven't played with DC databases in a while, but there should be something like AO_60DB71_CARDCOLOR table where those references would be stored.
I also did find this (note: it's AI-generated ⚠️):
1. Identify the Orphaned User Keys
Run a diagnostic SQL query to find users who exist in the application mapping but are missing from the synchronized directory:
SELECT au.user_key, au.lower_user_name FROM app_user au LEFT JOIN cwd_user cu ON cu.lower_user_name = au.lower_user_name WHERE cu.lower_user_name IS NULL;This will give you the exact
user_keycausing the integrity check errors .2. Recreate and Clean Up (Recommended UI Method)
The most stable way to clear these references without direct database manipulation is to make the users "visible" to Jira again temporarily:
Recreate the User: Create a local user in Jira using the exact same
lower_user_nameidentified in the query above .Update Board Settings: Once the user is recreated, navigate to your Board Settings > Card Colors. The user will now be searchable and selectable. You can then successfully remove the rule or reassign the color to a valid user .
Bulk Reassign: Use JQL (
assignee = "username") to find any issues still assigned to this user and bulk-edit them to be Unassigned .Delete the Temporary User: After all references are cleared, you can safely delete the local user account.
3. Advanced Database Cleanup
If you have a large number of orphaned users, you can perform a database update to set the assignee/reporter to
NULLfor the affected user keys in thejiraissuetable .
Warning: This requires Jira to be offline, and you must perform a full "Lock Jira and rebuild index" immediately after restarting to ensure the changes persist and the integrity check passes .
But before running or deleting anything in the DB, I'd still confirm this with Atlassian Support to see what they say. 👀
Cheers,
Tobi
Thanks a lot, @Tomislav Tobijas. The recommendations were very helpful. I will investigate those, and when I find the right solution, I'll let you know!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.