Project

General

Profile

Defect #1497

Fail to create new issues with specified sprint

Added by Hai Yang about 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
Source:
Development
Detected on version:
Blocked:
Yes
Alone:
No
Milestones:
Sprint:

Description

System information =========
Ubuntu: 16.06
Ruby:
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

Environment:
Redmine version 3.4.3.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Subversion 1.9.3
Git 2.7.4
Filesystem
Redmine plugins:
clipboard_image_paste 1.12
plantuml 0.5.1
redmine_agile 1.4.5
redmine_checklists 3.1.10
redmine_dmsf 1.6.0
redmine_wiki_extensions 0.8.1
scrum 0.18.0

Reproduce =========
1. Create Sprint
2. Create a new issue and put into the Sprint
3. There is failed web page shown and the operations is not done.

Reproduce rate ========
100%

Production log =========
Started POST "/redmine/projects/ob/issues" for 192.168.98.132 at 2017-10-28 10:45:59 +0800
Processing by IssuesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"2CcHar3MnNXwWoguc/R+zcRyRS05+7+hiH40fsFq0e6/nBAWcfTJrwFZ9fg1KsfQfAUs1TQjQaJDSRSUZykAzg==", "form_update_triggered_by"=>"", "issue"=>{"is_private"=>"0", "tracker_id"=>"1", "subject"=>"Integration", "description"=>"[This is for follow up meeting]\r\n\r\nTWe need work for solution with controller added.", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"19", "parent_issue_id"=>"", "start_date"=>"2017-10-28", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "sprint_id"=>"3", "pending_effort"=>"0"}, "was_default_status"=>"1", "commit"=>"Create", "project_id"=>"ob"}
Current user: hai.yang (id=5)
Completed 500 Internal Server Error in 71ms (ActiveRecord: 11.1ms)

NoMethodError (undefined method `>' for nil:NilClass):
plugins/scrum/lib/scrum/issue_patch.rb:564:in `block in max_position'
plugins/scrum/lib/scrum/issue_patch.rb:563:in `each'
plugins/scrum/lib/scrum/issue_patch.rb:563:in `max_position'
plugins/scrum/lib/scrum/issue_patch.rb:576:in `move_issue_to_the_end_of_the_sprint'
plugins/scrum/lib/scrum/issue_patch.rb:463:in `update_position'
app/models/issue.rb:210:in `create_or_update'
app/controllers/issues_controller.rb:129:in `create'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'


Files

Also available in: Atom PDF