We're trying to import a project from Trac to JIRA.

In the guide it says the following:


  • Usernames— If you don't specify mapping, the importer will automatically map Trac usernames to JIRA usernames (lowercase).
    (info)Regardless of whether you specify mapping, JIRA will automatically create usernames for missing users.

However, there is no opportunity for me to ever make such a mapping? Is the documentation incorrect or am I missing something?

I definantly don't want these duplicate users in JIRA that I cannot delete... Since you cannot change the user that made a comment like you can for assignee. Which in turn makes it impossible to delete these duplicate users without deleting all the comments.

2 answers

I solved this myself, not by using any JIRA features. But instead I used this script: https://trac-hacks.org/wiki/RenameUsersScriptand ran it on the trac SQLite database file to rename the users to the JIRA ones.

This then worked great when importing the Trac project in JIRA.

Just make sure you backup your Trac database before running the script.

Good find on the RenameUsersScript!

I wrote another PHP script that will update your trac.db ticket_change records replacing the trac-style changeset repository links to a format acceptable by JIRA. Our user story and sample SQL commands to rename users prior to import is also included at the bottom of the script in comments.



Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

850 views 3 12
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you