プロジェクト

全般

プロフィール

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

Akiko Takano, 2020/04/05 13:55

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