Plugin to generate and use issue templates for each project to assist issue creation.
The current version of Chrome, Firefox, and Microsoft Edge (Chromium version).
If you have any feature requests or bug reports, please use GitHub issues.
$REDMINE_ROOT/plugins
directory. Please
note that plugin's folder name should be redmine_issue_templates
. If
changed, some migration tasks may fail.rails redmine:plugins:migrate RAILS_ENV=production
This plugin repository includes some test code and gem settings. If you have
some troubles related to bundle install
, please try --without
option.
bundle install --without test
Uninstall:
rails redmine:plugins:migrate NAME=redmine_issue_templates VERSION=0 RAILS_ENV=production
Re-install:
rails redmine:plugins:migrate NAME=redmine_issue_templates RAILS_ENV=production
If the migration is cancelled with error like following message for the first time you try to install this plugin:
Caused by: Mysql2::Error: Table 'DATABASE_FOR_REDMINE.issue_templates' doesn't exist
You can fix this error to remove migration records related to this plugin from shema_migrations
table.
If you can access and select database for Redmine, try this command:
select * from schema_migrations where version like '%redmine_issue_templates%';
If there are any records shown like this and there is no table named 'issue_templates', your installation has been in incomplete state.
1-redmine_issue_templates
2-redmine_issue_templates
So, you should better run the uninstall task first, and retry the migration.
Related issues:
Login to your Redmine install as an Administrator
Enable the permissions for your Roles:
Enable the module "Issue Template" on the project setting page.
The link to the plugin should appear on that project's navigation.
You can see the rake tasks, related to this plugin, with (bundle exec)
rake -T
.
Exp.
# Apply inhelit template setting to child projects
$ rake redmine_issue_templates:apply_inhelit_template_to_child_projects[project_id]
# Run test for redmine_issue_template plugin
$ rake redmine_issue_templates:default
# Run spec for redmine_issue_template plugin
$ rake redmine_issue_templates:spec
# Run tests
$ rake redmine_issue_templates:test
# Unapply inhelit template setting from child projects
$ rake redmine_issue_templates:unapply_inhelit_template_from_child_projects[project_id]
# Generate YARD Documentation for redmine_issue_template plugin
$ rake redmine_issue_templates:yardoc
You can apply/unapply inherit templates for all the children projects.
rake redmine_issue_templates:apply_inhelit_template_to_child_projects[project_id] # Apply inhelit template setting to child projects
rake redmine_issue_templates:unapply_inhelit_template_from_child_projects[project_id] # Unapply inhelit template setting from child projects
If you want to apply inherit templates setting all the children projects of project_id: 1
(as parent project), please run rake command like this:
rake redmine_issue_templates:apply_inhelit_template_to_child_projects[1]
Please see .circleci/config.yml
for more details.
% cd REDMINE_ROOT_DIR
% cp plugins/redmine_issue_templates/Gemfile.local plugins/redmine_issue_templates/Gemfile
% bundle install --with test
% export RAILS_ENV=test
% bundle exec ruby -I"lib:test" -I plugins/redmine_issue_templates/test plugins/redmine_issue_templates/test/functional/issue_templates_controller_test.rb
or
% bundle exec rails redmine_issue_templates:test
Please see .circleci/config.yml for more details.
% cd REDMINE_ROOT_DIR
% cp plugins/redmine_issue_templates/Gemfile.local plugins/redmine_issue_templates/Gemfile
% bundle install --with test
% export RAILS_ENV=test
% bundle exec rspec -I plugins/redmine_issue_templates/spec --format documentation plugins/redmine_issue_templates/spec/
By default, headless
is added as an option. If you set the environment variable
HEADLESS
to 0
, headless
will be removed.
% HEADLESS=0 bundle exec rspec -I plugins/redmine_issue_templates/spec --format documentation plugins/redmine_issue_templates/spec/
required
% npm install
% npm run build
% npm run dev
% REDMINE_ISSUE_TEMPLATE_VITE_SERVE_URL=http://localhost:5244 bundle exec rails server
For detailed list of changes please see: CHANGELOG.md
Pull requests, reporting issues, stars are always welcome!
We are always thrilled to receive pull requests, and do our best to process them as fast as possible. If you find some type, please create pull request. Do it! We will appreciate it.
This software is licensed under the GNU GPL v2.