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