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