Skip to content

Instantly share code, notes, and snippets.

@meineerde
Created September 21, 2010 15:15
Show Gist options
  • Select an option

  • Save meineerde/589831 to your computer and use it in GitHub Desktop.

Select an option

Save meineerde/589831 to your computer and use it in GitHub Desktop.
#!/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