プロジェクト

全般

プロフィール

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

Akiko Takano, 2013/08/09 05:42

1 10 Akiko Takano
{{>toc}}
2
3 1 Akiko Takano
h1. Issue Template plugin
4
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 2 Akiko Takano
h2. Download
8
9 21 Akiko Takano
* "bitbucket":https://bitbucket.org/akiko_pusu/redmine_issue_templates/
10 33 Akiko Takano
** "bitbucket":https://bitbucket.org/akiko_pusu/redmine_issue_templates/tags (You can download zip/tgz)
11 2 Akiko Takano
12 1 Akiko Takano
h2. Features
13 2 Akiko Takano
14
* It works as project module.
15
* Member who has "Manage Template" right can create issue templates *based on trackers*.
16
** Also add help message for templates, because the way to use templates may be different between projects.
17
* Member who has "Use Template" right can see the template and use them when creating new issue.
18 1 Akiko Takano
19
h2. Plugin installation
20 3 Akiko Takano
21
# Copy the plugin into the vendor/plugins directory
22
# Migrate plugin: rake db:migrate_plugins RAILS_ENV=production
23
# Start Redmine
24
# Enable the module on the project setting page.
25 1 Akiko Takano
26 28 Akiko Takano
h2. Uninstall plugin
27
28 29 Akiko Takano
h3. Run rake task
29 28 Akiko Takano
30
** rake redmine:plugins:migrate NAME=redmine_issue_templates VERSION=0
31
32
Above rake task will remove the related records to redmine_issue_templates from schema_migration table.
33
In additon to this, issue_templates and issue_template_settings tables will be also removed.
34
35 29 Akiko Takano
h3. Manual uninstall
36 28 Akiko Takano
37
In some situation, rake task to uninstall may be failed. To uninstall plugin manually, please remove these records and tables from your database.
38
39
* Remove records from schema_migration table related to issue_templates.
40
** DELETE FROM schema_migration WHERE version LIKE '%redmine_issue_templates';
41
42
* Drop issue_templates and issue_template settiongs.
43 30 Akiko Takano
** DROP TABLE issue_templates; DROP TABLE issue_template_settings;
44 28 Akiko Takano
45 31 Akiko Takano
h2. Permission Settings (as Redmine Admin)
46 1 Akiko Takano
47 4 Akiko Takano
Now this plugin works as project module, and three permissions are defined.
48
49
# Show template
50
# Edit template
51
** Right to create/edit templates.
52
# Manage template
53
** Right to add help message for templates, such as usage of templates.
54
 
55
(!) Note: These templates are available only for its project.
56 7 Akiko Takano
(!) Note: Only Redmine administrator can set ermissions for issue templates.
57
58
59 1 Akiko Takano
> !permission.png!
60 31 Akiko Takano
61
h2. Enabled Issue Templates as Project Module
62
63
Now this plugin works as project module.
64
So, project manager needs to check this plugin at project module settings page for activation.
65 1 Akiko Takano
66 32 Akiko Takano
!set-as-project-module.png!
67 4 Akiko Takano
68 11 Akiko Takano
h2. Usage & Screen shots
69 5 Akiko Takano
70
h3. Use templates
71
72 6 Akiko Takano
User who has "show templates" permission can use templates when creating issue.
73 16 Akiko Takano
First, enable, selectable templates related with the tracker are shown as pulldown menu.
74 6 Akiko Takano
75 16 Akiko Takano
Select template from pulldown, ajax request is posted and template body is loaded into issue description field.
76
 
77 6 Akiko Takano
78 16 Akiko Takano
> !use_template1.png!
79
80 5 Akiko Takano
h3. Create/Edit templates
81 12 Akiko Takano
82 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.
83
84 13 Akiko Takano
Click "Add template" and the form for creating template will be shown.
85
86 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. 
87
88 16 Akiko Takano
> !gotomenu.png!
89 13 Akiko Takano
90 16 Akiko Takano
> !add-template.png!
91 12 Akiko Takano
92
(!) Note: This is not shown without "show templates" permission.
93 5 Akiko Takano
94 14 Akiko Takano
h3. Manage project templates
95 1 Akiko Takano
96 14 Akiko Takano
Now this is optional setting.
97
Who has manage template permission can set custom help message for template usage on his/her project.
98 1 Akiko Takano
99 14 Akiko Takano
This help message will be shown on the "New Issue" page, beside template pulldown.
100
101 16 Akiko Takano
> !manage-template.png!
102 15 Akiko Takano
103
Here is a screenshot of custome template help message.
104
105 16 Akiko Takano
> !template-help.png!
106 18 Akiko Takano
107 25 Akiko Takano
h3. Change Template order
108 18 Akiko Takano
109 25 Akiko Takano
In case a tracker has some related templates, you can reorder template on index page.
110 19 Akiko Takano
111 25 Akiko Takano
h3. Default template setting
112
113
If a template marked as default, template text will be loaded when tracker is changed on creating issue page.
114
115 26 Akiko Takano
For example, *Bug* tracker has 3 templates and "Bug3 default" template is marked as default.  
116
117 25 Akiko Takano
!template-list.png!
118 26 Akiko Takano
119
At the new issue page, when user selects Bug tracker, soon default template text is appended to description field.
120
121 25 Akiko Takano
!load-default-template.png!
122
123 19 Akiko Takano
h2. Future plannning / Feedback
124 20 Akiko Takano
125 18 Akiko Takano
h3. Plannning
126
127
* Use global templates.
128 27 Akiko Takano
129 18 Akiko Takano
130
h3. Feedback
131
132 1 Akiko Takano
* Feedback would be appreciated. You can send from issue tracker on bitbucket or tracker on this project.
133 25 Akiko Takano
* Translations, ui idea, css are also appreciated.