プロジェクト

全般

プロフィール

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

Akiko Takano, 2014/02/20 02:17

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