Add selection for product backlog.

pull/6827/head
friflaj 15 years ago
parent ff56c5d3fd
commit 38e8eb3751
  1. 13
      app/controllers/backlogs_controller.rb
  2. 7
      app/views/backlogs/_backlog.html.erb
  3. 1
      init.rb

@ -128,6 +128,19 @@ class BacklogsController < ApplicationController
redirect_to :controller => 'issues', :action => 'index', :project_id => @project.id
end
def select_product_backlog
@query = Query.new(:name => "_")
@query.project = @project
@query.add_filter("status_id", 'o', ['']) # only open
@query.add_filter("fixed_version_id", '!*', ['']) # only unassigned
@query.add_filter("backlogs_issue_type", '=', ['story'])
session[:query] = {:project_id => @query.project_id, :filters => @query.filters}
redirect_to :controller => 'issues', :action => 'index', :project_id => @project.id
end
def update
sprint = Sprint.find(params[:id])
attribs = params.select{|k,v| k != 'id' and Sprint.column_names.include? k }

@ -20,6 +20,13 @@
:sprint_id => backlog }),
:for => :sprint
},
{
:item => menu_link('Stories', {
:controller => 'backlogs',
:action => 'select_project_backlog',
:project_id => @project }),
:for => :product
},
{
:item => menu_link('Burndown', {
:controller => 'backlogs',

@ -42,6 +42,7 @@ Redmine::Plugin.register :redmine_backlogs do
:reorder,
:sprint_date,
:select_sprint,
:select_product_backlog,
:update,
:burndown ],
:stories => [ :index,

Loading…
Cancel
Save