Project

General

Profile

Defect #1191

NoMethodError (undefined method `all_dependent_issues' for #<Issue:0x007f09168c83d8>)

Added by Bartosz Firyn about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
Product backlog
Target version:
Source:
Testing
Detected on version:
Blocked:
No
Alone:
Milestones:
Sprint:

Description

Hi,

I installed Scrum 0.14.0 (2016-06-21) which I downloaded from:

https://redmine.ociotec.com/attachments/download/384/scrum%20v0.14.0.tar.gz

On top of Redmine 3.3.0 (2016-06-19) which I downloaded from:

http://www.redmine.org/releases/redmine-3.3.0.zip

After I configured Scrum and created several backlog items I tried to sort them out. The GUI displays error "Fail to sort the PBI, check its dependencies. The page will be reloaded." and in the console output I see the following error:

Started POST "/projects/swim/product_backlog/sort" for 127.0.0.1 at 2016-09-09 11:33:36 +0200
Processing by ProductBacklogController#sort as JS
  Parameters: {"pbi"=>["6", "7", "5"], "project_id"=>"swim"}
  Current user: sarxos (id=5)
Completed 500 Internal Server Error in 72ms (ActiveRecord: 48.8ms)

NoMethodError (undefined method `all_dependent_issues' for #<Issue:0x007f09168c83d8>):
  plugins/scrum/app/controllers/product_backlog_controller.rb:156:in `block in get_dependencies'
  plugins/scrum/app/controllers/product_backlog_controller.rb:155:in `each'
  plugins/scrum/app/controllers/product_backlog_controller.rb:155:in `get_dependencies'
  plugins/scrum/app/controllers/product_backlog_controller.rb:31:in `block in sort'
  plugins/scrum/app/controllers/product_backlog_controller.rb:27:in `each'
  plugins/scrum/app/controllers/product_backlog_controller.rb:27:in `sort'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
<pre>

Files

sort.png (33.5 KB) sort.png Bartosz Firyn, 2016-09-09 12:30
dependencies-disable.png (27 KB) dependencies-disable.png Bartosz Firyn, 2016-10-07 11:07

Subtasks

To do #1222: Add patch to take care of new Redmine 3.3.x API for issues relationshipsResolvedEmilio González MontañaActions
To do #1223: Move PBIs (move top/bottom, move before/after) doesn't check dependenciesResolvedEmilio González MontañaActions

Related issues

Has duplicate Scrum - Defect #1200: Error sorting product backlog in Redmine 3.3.0RejectedActions
Has duplicate Scrum - Defect #1211: 500: /product_backlog/check_dependencies undefined method `all_dependent_issues'RejectedActions

Also available in: Atom PDF