kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.5 KiB
68 lines
2.5 KiB
require 'redmine'
|
|
|
|
require 'dispatcher'
|
|
|
|
require 'query_patch'
|
|
require 'issue_patch'
|
|
require 'version_patch'
|
|
|
|
Dispatcher.to_prepare do
|
|
require_dependency 'version'
|
|
require_dependency 'issue'
|
|
require_dependency 'issue_relation'
|
|
require_dependency 'version'
|
|
require_dependency 'project'
|
|
|
|
Issue::SAFE_ATTRIBUTES << "story_points" if Issue.const_defined? "SAFE_ATTRIBUTES"
|
|
Issue::SAFE_ATTRIBUTES << "remaining_hours" if Issue.const_defined? "SAFE_ATTRIBUTES"
|
|
|
|
Query.send(:include, QueryPatch) unless Query.included_modules.include? QueryPatch
|
|
Issue.send(:include, IssuePatch) unless Issue.included_modules.include? IssuePatch
|
|
Version.send(:include, VersionPatch) unless Version.included_modules.include? VersionPatch
|
|
Project.send(:include, ProjectPatch) unless Project.included_modules.include? ProjectPatch
|
|
end
|
|
|
|
require_dependency 'backlogs_hooks'
|
|
|
|
Redmine::Plugin.register :redmine_backlogs do
|
|
name 'Redmine Scrum Plugin'
|
|
author 'Mark Maglana, friflaj'
|
|
description 'Scrum plugin for Redmine'
|
|
version '2.1 unstable'
|
|
|
|
settings :default => { :story_trackers => nil, :task_tracker => nil, :card_spec => nil }, :partial => 'settings/backlogs_settings'
|
|
|
|
project_module :backlogs do
|
|
permission :manage_backlog,
|
|
{ :backlogs => [ :wiki_page_edit,
|
|
:story_points,
|
|
:rename,
|
|
:jsvariables,
|
|
:reorder,
|
|
:sprint_date,
|
|
:update ],
|
|
:stories => [ :new,
|
|
:create,
|
|
:update ],
|
|
:tasks => [ :update,
|
|
:new,
|
|
:create ],
|
|
}
|
|
permission :view_backlog,
|
|
{ :backlogs => [ :wiki_page,
|
|
:noconfig,
|
|
:index,
|
|
:show,
|
|
:select_issues,
|
|
:taskboard_cards,
|
|
:product_backlog_cards,
|
|
:burndown ],
|
|
:stories => [ :index ],
|
|
:tasks => [ :index ],
|
|
}
|
|
end
|
|
|
|
menu :project_menu, :backlogs, { :controller => 'backlogs', :action => 'index' }, :caption => 'Backlog', :after => :issues, :param => :project_id
|
|
end
|
|
|
|
|
|
|