Bugzilla to JIRA, I investigated how to achieve that the static links are not broken.
As we are planning to move from...
This could be done in writing a RewriteMap containing the Bugzilla issue ID as a key and the JIRA issue ID as the value. The next step after importing the Bugzilla issues to JIRA is generating such a map.
Use the External System Import feature to import the Bugzilla issues to JIRA: secure/admin/ExternalImport1.jspa
Each imported issue has (as you can see in the image) a field External Issue Id
. This is in our case the old Bugzilla issue ID.
With some simple steps we export the imported issues to the map in a format we need:
- Go to the newly imported project in JIRA
- Change the displayed columns
- Change the order of the columns using drag and drop
- Export to Excel
- Remove all unnecessary elements in the exported excel sheet and convert the links to plaintext
- Export Excel sheet to text file
For our smartics-jboss-modules-maven-plugin
the exported text file looks like this:
...
Code Block | ||
---|---|---|
| ||
... # In the case you have to debug the rules #RewriteLog #LogLevel alert #LogLevel info rewrite:trace6 #LogLevel alert rewrite:trace3 #OLD APACHE: RewriteLog "/tmp/rewrite.log" #RewriteLogLevel#OLD APACHE: RewriteLogLevel 5 #The mappingfile (must not be in a Directory entry) RewriteMap bugzillajiramap "txt:/etc/apache2/bugzilla-jira-map.txt" ... #Our Bugzilla Directory entry <Directory /home/smartics/public_html/bugzilla/> AddHandler cgi-script .cgi Options +Indexes +ExecCGI +FollowSymLinks DirectoryIndex index.cgi AllowOverride Limit AddType application/vnd.mozilla.xul+xml .xul AddType application/rdf+xml .rdf RewriteEngine on # Grep the ID from the Query_String and store in Variable 1. RewriteCond %{QUERY_STRING} "id=(.*)$" # Check if ID is in the specified text file. Only when found continue with RewriteRule. RewriteCond ${bugzillajiramap:%1|NOTFOUND} !NOTFOUND [NC] RewriteRule "^show_bug.cgi" "https://www.smartics.eu/jira/browse/${bugzillajiramap:%1|NOTFOUND}" </Directory> |
...
In the next post I will show a different solution that suits the need to move all Bugzilla projects to JIRA.
...