Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trac import

Joakim Söderberg February 20, 2014

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

In the guide it says the following:

https://confluence.atlassian.com/display/JIRA060/Importing+Data+from+Trac

  • 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

0 votes
JolyonKB April 24, 2014

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.

tracsvn2JiraFisheyeLinkConverter.php

Cheers!

0 votes
Joakim Söderberg February 23, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events