プロジェクト

全般

プロフィール

About en » 履歴 » バージョン 52

Akiko Takano, 2014/07/06 14:33

1 1 Akiko Takano
h1. Issue Template plugin
2 47 Akiko Takano
3 48 Akiko Takano
{{toc}}
4 1 Akiko Takano
5 2 Akiko Takano
This is a plugin to generate and use issue templates, and its objective is to *support user's issue creation work*. 
6 1 Akiko Takano
7 40 Akiko Takano
h2. Information page on Redmine.org
8
9 1 Akiko Takano
* http://www.redmine.org/plugins/issue_templates
10 49 Akiko Takano
11
h3. Demo site
12
13 50 Akiko Takano
Demo site: http://redmine-akiko.ruby.iijgio.com/ (For maintenance reason, this site may down irregularly.)
14 40 Akiko Takano
15 2 Akiko Takano
h2. Download
16
17 21 Akiko Takano
* "bitbucket":https://bitbucket.org/akiko_pusu/redmine_issue_templates/
18 38 Akiko Takano
** "https://bitbucket.org/akiko_pusu/redmine_issue_templates/downloads  (You can download zip/tgz)
19 2 Akiko Takano
20 1 Akiko Takano
h2. Features
21 2 Akiko Takano
22 41 Akiko Takano
* Since 0.0.8, supported global issue templates.
23
** Now only Administrator can associated global templates with each project.
24 2 Akiko Takano
* It works as project module.
25
* Member who has "Manage Template" right can create issue templates *based on trackers*.
26
** Also add help message for templates, because the way to use templates may be different between projects.
27
* Member who has "Use Template" right can see the template and use them when creating new issue.
28 39 Akiko Takano
* Child project can use inherited templates from parent project. (Since ver 0.0.6)
29 1 Akiko Takano
30
h2. Plugin installation
31 3 Akiko Takano
32
# Copy the plugin into the vendor/plugins directory
33
# Migrate plugin: rake db:migrate_plugins RAILS_ENV=production
34
# Start Redmine
35
# Enable the module on the project setting page.
36 1 Akiko Takano
37 28 Akiko Takano
h2. Uninstall plugin
38
39 29 Akiko Takano
h3. Run rake task
40 28 Akiko Takano
41
** rake redmine:plugins:migrate NAME=redmine_issue_templates VERSION=0
42
43
Above rake task will remove the related records to redmine_issue_templates from schema_migration table.
44
In additon to this, issue_templates and issue_template_settings tables will be also removed.
45
46 29 Akiko Takano
h3. Manual uninstall
47 28 Akiko Takano
48
In some situation, rake task to uninstall may be failed. To uninstall plugin manually, please remove these records and tables from your database.
49
50
* Remove records from schema_migration table related to issue_templates.
51 52 Akiko Takano
** DELETE FROM schema_migrations WHERE version LIKE '%redmine_issue_templates';
52 28 Akiko Takano
53
* Drop issue_templates and issue_template settiongs.
54 30 Akiko Takano
** DROP TABLE issue_templates; DROP TABLE issue_template_settings;
55 28 Akiko Takano
56 31 Akiko Takano
h2. Permission Settings (as Redmine Admin)
57 1 Akiko Takano
58 4 Akiko Takano
Now this plugin works as project module, and three permissions are defined.
59
60
# Show template
61
# Edit template
62
** Right to create/edit templates.
63
# Manage template
64
** Right to add help message for templates, such as usage of templates.
65
 
66
(!) Note: These templates are available only for its project.
67 7 Akiko Takano
(!) Note: Only Redmine administrator can set ermissions for issue templates.
68
69
70 1 Akiko Takano
> !permission.png!
71 31 Akiko Takano
72
h2. Enabled Issue Templates as Project Module
73
74
Now this plugin works as project module.
75
So, project manager needs to check this plugin at project module settings page for activation.
76 1 Akiko Takano
77 32 Akiko Takano
!set-as-project-module.png!
78 4 Akiko Takano
79 11 Akiko Takano
h2. Usage & Screen shots
80 5 Akiko Takano
81
h3. Use templates
82
83 6 Akiko Takano
User who has "show templates" permission can use templates when creating issue.
84 16 Akiko Takano
First, enable, selectable templates related with the tracker are shown as pulldown menu.
85 6 Akiko Takano
86 16 Akiko Takano
Select template from pulldown, ajax request is posted and template body is loaded into issue description field.
87
 
88 6 Akiko Takano
89 16 Akiko Takano
> !use_template1.png!
90
91 35 Akiko Takano
NOTE: Since templates are associated with a tracker, that template pulldown menu i changed if the tracker is changed at  then new issue page. And if selected tracker has no associated templates, issue template pulldown is blank. ( only "---" text is shown.) 
92
93 37 Akiko Takano
> !template-pulldown-is-blank.png!
94 35 Akiko Takano
95 5 Akiko Takano
h3. Create/Edit templates
96 12 Akiko Takano
97 1 Akiko Takano
To access create / edit templates menu, click "Issues" or "New Issue" project tab, and you can see the menu at the sidebar.
98
99 13 Akiko Takano
Click "Add template" and the form for creating template will be shown.
100
101 17 Akiko Takano
And each template is related to some tracker, so that if you change tracker of new issue, template pulldown is also reloaded and updated related to the tracker. 
102
103 16 Akiko Takano
> !gotomenu.png!
104 13 Akiko Takano
105 16 Akiko Takano
> !add-template.png!
106 12 Akiko Takano
107
(!) Note: This is not shown without "show templates" permission.
108 5 Akiko Takano
109 14 Akiko Takano
h3. Manage project templates
110 1 Akiko Takano
111 14 Akiko Takano
Now this is optional setting.
112
Who has manage template permission can set custom help message for template usage on his/her project.
113 1 Akiko Takano
114 14 Akiko Takano
This help message will be shown on the "New Issue" page, beside template pulldown.
115
116 16 Akiko Takano
> !manage-template.png!
117 15 Akiko Takano
118
Here is a screenshot of custome template help message.
119
120 16 Akiko Takano
> !template-help.png!
121 18 Akiko Takano
122 25 Akiko Takano
h3. Change Template order
123 18 Akiko Takano
124 25 Akiko Takano
In case a tracker has some related templates, you can reorder template on index page.
125 19 Akiko Takano
126 25 Akiko Takano
h3. Default template setting
127
128
If a template marked as default, template text will be loaded when tracker is changed on creating issue page.
129
130 26 Akiko Takano
For example, *Bug* tracker has 3 templates and "Bug3 default" template is marked as default.  
131
132 25 Akiko Takano
!template-list.png!
133 26 Akiko Takano
134
At the new issue page, when user selects Bug tracker, soon default template text is appended to description field.
135
136 25 Akiko Takano
!load-default-template.png!
137
138 44 Akiko Takano
h3. Global template setting
139
140 46 Akiko Takano
Administrator can make global templates from Admiistration menu, and associate global templates with each project.
141
142 44 Akiko Takano
!global-template.png!
143 46 Akiko Takano
144
h4. Known restrictions
145
146
* Global templates can not be associated with each project from project settings tab. (Now only Administrator do this work)
147
* Global template is not defined as a default template.
148
149 44 Akiko Takano
150 19 Akiko Takano
h2. Future plannning / Feedback
151 20 Akiko Takano
152 43 Akiko Takano
h3. Known issue
153 42 Akiko Takano
154
* Template loads every time Status is changed
155 51 Akiko Takano
** https://bitbucket.org/akiko_pusu/redmine_issue_templates/issue/36
156
** Only happned in case using default template.
157 42 Akiko Takano
158 18 Akiko Takano
h3. Plannning
159 1 Akiko Takano
160 42 Akiko Takano
* Template for note/journal. (Optional)
161
* Custom fields support. (Maybe this is implemented another way, such as copy from base issue) 
162 27 Akiko Takano
163 18 Akiko Takano
164
h3. Feedback
165
166 1 Akiko Takano
* Feedback would be appreciated. You can send from issue tracker on bitbucket or tracker on this project.
167 25 Akiko Takano
* Translations, ui idea, css are also appreciated.