![]() We had quotes in the content and these had to be escaped.ģ. ![]() Importing the data worked when I disabled "validates_uniqueness_of :name" like told in Ģ. We had many todo-lists that had the same name. I found some issues, mainly due to character escaping.ġ. ![]() NamingAndLogoGuidelines%20-%20FOR%20VENDOR%20USE.pdf">BlackB.įrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval'įrom /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:46įrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'įrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' I tried using this script and got multiple pages of errors:īasecamp-import.rb:13054: syntax error, unexpected tIDENTIFIER, expecting kENDīasecamp-import.rb:13056: syntax error, unexpected tIDENTIFIER, expecting kENDīasecamp-import.rb:13056: syntax error, unexpected $end Thanks to Tactio Interaction Design ( for funding this work! If you need to undo the import, there is a basecamp2redmine_undo.rb file, attached, which will generate an "undo" file you can run. Then run: script/runner basecamp-import.rb Optionally, inspect the basecamp-import.rb file to ensure it contains what you want to import. That command will generate the file "basecamp-import.rb". (replace my-basecamp-backup.xml with the name of your XML file) Run this command: ruby basecamp2redmine.rb my-basecamp-backup.xml > basecamp-import.rb Open a command prompt on the Redmine server, and change directory (cd) to that directory Put your Basecamp XML file in the same directory ![]() Put the basecamp2redmine.rb scrit in the root directory of your Redmine installation. Imports occur by invoking Redmine's ActiveRecord models, which ensures that all validations pass, the same as if you used the Web interface manually. This script will generate another Ruby script that does the actual importing. I just completed work on a script to import Basecamp data into Redmine, which is attached here. ![]()
0 Comments
Leave a Reply. |