Project Import Fails With Has No User Associated With The Watch Error
Symptoms
When trying to import a project, the import fails with the following error in the UI
Watcher associated with issue id '337461' has no user associated with the watch
Cause
This error occurs because there is watcher or voter with NULL value.
During the project import, JIRA will check for the watcher and voter association in all projects to prevent importing NULL userassociations
to the destination instance.
Resolution
Always back up your data before performing any modification to the database. If possible, try your modifications on a test server.
Run the following SQL query to identify all the NULL watcher and/or voter in the instance
SELECT * FROM userassociation WHERE source_name = '';
Delete every the NULL user returns from the query above.
DELETE FROM userassociation WHERE source_name = '';
Please make sure that you have the latest XML backup before proceeding with the DELETE statement above.