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