Created
November 4, 2011 11:04
-
-
Save retorquere/1339103 to your computer and use it in GitHub Desktop.
This file contains 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
issue = Issue.find(35) | |
if issue.is_task? | |
issue = issue.becomes(RbTask) | |
elsif issue.is_story? | |
issue = issue.becomes(RbStory) | |
else | |
raise "Neither a task nor a story" | |
end | |
puts issue.burndown.inspect | |
puts issue.velocity_based_estimate if issue.is_story? | |
puts issue.remaining_hours |
{:points_resolved=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 3.0, nil, nil, nil, nil, 5.0, 5.0, 5.0], :points_accepted=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil], :points=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 3.0, 3.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0], :hours=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 24.0, 0.0, 8.0, 8.0, 8.0, 8.0, 0.0, 0.0, 0.0]}
0
0.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/local/redmine# cat commands
issue = Issue.find(35)
puts issue.velocity_based_estimate
puts issue.remaining_hours
/usr/local/redmine# script/runner commands
/usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_merged_array.rb:60:in
add': undefined method
each_pair' for #Array:0x7f6538adcfd8 (NoMethodError)from /usr/local/redmine/vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:23:in
initialize' from /usr/local/redmine/vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:23:in
each'from /usr/local/redmine/vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:23:in
initialize' from /usr/local/redmine/vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:231:in
new'from /usr/local/redmine/vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:231:in
burndown' from /usr/local/redmine/vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:215:in
activity'from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:109:in
test_active' from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:40:in
send'from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:40:in
initialize' from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:39:in
each'from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:39:in
initialize' from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:165:in
new'from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:165:in
scrum_statistics' from /usr/local/redmine/vendor/rails/activesupport/lib/active_support/cache.rb:162:in
fetch'from /usr/local/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms' from /usr/lib/ruby/1.8/benchmark.rb:308:in
realtime'from /usr/local/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms' from /usr/local/redmine/vendor/rails/activesupport/lib/active_support/cache.rb:162:in
fetch'from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:165:in
scrum_statistics' from /usr/local/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in
send'from /usr/local/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in
method_missing' from /usr/local/redmine/vendor/plugins/redmine_backlogs/lib/backlogs_issue_patch.rb:90:in
velocity_based_estimate'from comandi:2
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
eval' from /usr/local/redmine/vendor/rails/railties/lib/commands/runner.rb:46 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/runner:3