Created
September 21, 2010 15:15
-
-
Save meineerde/589831 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # We use the actual id's here | |
| dod_id = IssueCustomField.find_by_name('Akzeptanzkriterien').id | |
| timespan_id = IssueCustomField.find_by_name('Zeitaufwand').id | |
| precond_id = IssueCustomField.find_by_name('Vorbedingungen').id | |
| lane_id = IssueCustomField.find_by_name('Lane').id | |
| rows.each do |row| | |
| [...] | |
| issue = Issue.build :subject => subject, :description => user_story, :project => project , :tracker => tracker, :author => author | |
| issue.custom_field_values = { | |
| dod_id.to_s => dod, | |
| timespan_id => 'M', | |
| precond_id => 'keine', | |
| lane_id => 'Product Owner' | |
| } | |
| issue.save! | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment