-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
30 lines (26 loc) · 1.16 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'redmine'
Redmine::Plugin.register :redmine_issue_status_changer do
name 'Redmine Issue Status Changer'
author 'Daniel Vijge'
description 'Automatically change status of issues based on status of subtasks'
version '0.0.3'
url 'https://github.com/eurailcom/redmine_issue_status_changer'
author_url 'https://github.com/danielvijge'
requires_redmine version_or_higher: '2.1.0'
settings :default => {
"change_status" => 1,
"new_status" => 1,
"change_target_version" => 1
}, :partial => 'settings/issue_status_change'
settings[:default]["change_status"] = Hash.new
settings[:default]["new_status"]= Hash.new
settings[:default]["change_status"]["close"] = Hash.new
settings[:default]["new_status"]["close"] = Hash.new
settings[:default]["change_status"]["open"] = Hash.new
settings[:default]["new_status"]["open"] = Hash.new
settings[:default]["change_status"]["additional"] = Hash.new
settings[:default]["new_status"]["additional_from"] = Hash.new
settings[:default]["new_status"]["additional_to"] = Hash.new
settings[:default]["new_status"]["protected_status"] = Hash.new
settings[:default]["change_target_version"] = Hash.new
end