GithubHelp home page GithubHelp logo

restream / redmine_issue_template Goto Github PK

View Code? Open in Web Editor NEW
28.0 12.0 13.0 563 KB

Allows to manage templates of issues, and adding them to issue body

License: Apache License 2.0

Ruby 57.01% HTML 32.14% JavaScript 9.18% CSS 1.67%
redmine redmine-plugin

redmine_issue_template's Introduction

Redmine Issue Template Plugin

Build Status Code Climate

This plugin enables you to create global Redmine issue templates or templates for specific Redmine projects.

Compatibility

This plugin version is compatible only with Redmine 2.1.x and later.

Installation

  1. To install the plugin

    • Download the .ZIP archive, extract files and copy the plugin directory into #{REDMINE_ROOT}/plugins.

    Or

    • Change you current directory to your Redmine root directory:

        cd {REDMINE_ROOT}
      

      Copy the plugin from GitHub using the following command:

        git clone https://github.com/Restream/redmine_issue_template.git plugins/redmine_issue_template
      
  2. Update the Gemfile.lock file by running the following commands:

      rm Gemfile.lock  
      bundle install
    
  3. This plugin requires a migration. Run the following command to upgrade your database (make a database backup before):

     bundle exec rake redmine:plugins:migrate RAILS_ENV=production
    
  4. Restart Redmine.

Now you should be able to see the plugin in Administration > Plugins.

Usage

  1. To create a global issue template
    1. Go to Administration > Issue templates and click New issue template.
      create global template
      create global template
    2. Add the template title and content and click Save.
      create global template
  2. To add an issue template for a specific project
    1. Enable the project issue template module on the project Settings tab.
      issue template module
      This will add a new Issue templates tab to the project settings.
    2. Switch to the Issue templates tab and create the required project issue templates.
      create issue template
    3. Add the template title and content and click Save.
      create issue template
  3. To use a template when you create a new issue
    1. Select the required issue template and click Insert template.
      select issue template
    2. The template's text will be added to the issue description field at the cursor position.
      add issue template
  4. To edit or delete the project issue template, go to the Issue templates tab of the project settings.
    edit issue template Note that Issue templates tab displays both global and project templates.
  5. To edit or delete the global issue template, go to Administration > Issue templates.
    create global template

Maintainers

Danil Tashkinov, github.com/nodecarter

License

Copyright (c) 2016 Restream

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

redmine_issue_template's People

Contributors

irina-l avatar nettsundere avatar nodecarter avatar over avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_issue_template's Issues

Install issue on Debian9

On a fresh installed Debian9 I installed Redmine with maria-db like described there: https://wiki.debian.org/redmine

It works without problems.

Then I tried to install the redmine_issue_template plugin but
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
failed with:
== 20131021081917 AddStiToIssueTemplates: migrating ===========================
-- add_column(:issue_templates, :type, :string)
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Duplicate column name 'type': ALTER TABLE issue_templates ADD type varchar(255)

I changed in: /usr/share/redmine/plugins/redmine_issue_template/db/migrate/20131021081917_add_sti_to_issue_templates.rb
to:
class AddStiToIssueTemplates < ActiveRecord::Migration
def change
# add_column :issue_templates, :type, :string
add_index :issue_templates, :type
end
end

The plugin loads, but if I want to add a new ticket, i get the error "there is no status as default defined." But in Administration->Ticket-Status I can not define a default status.

Any hints? :-)
Thanks

Environment:
Redmine version 3.3.1.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
Rails version 4.2.10
Environment production
Database adapter Mysql2
SCM:
Git 2.11.0
Filesystem
Redmine plugins:
redmine_issue_template 1.0.7

Create new tag 1.0.8 with last fix

We want to inject redmine_issue_template plugin into our redmine docker image, and now can't make git clone to specified tag, because that fix is not in v1.0.7 and next version (1.0.8?) is not present.
Using master branch is unsafe, because it can be changed at any time.

Redmine 3.x.x

This is a great plugin, tho' I can't wait till Redmine V3 support is added. ))

Templates cannot be edited

Once created I get only a list of templates and their contents. Editing the template seems to be impossible.

Setup an automatic template insertion for certain trackers

I just installed your version of redmine_issue_template as the one I used before did not work anymore after upgrading my redmine installation. I like it very much. However what I am missing is a setting, where I can assign a certain tracker a default template (e.g. for "Bugreport" Tracker "Bug") that is automatically inserted.

Have you foreseen something like this? It would make the template mechanism more effective as it does not rely on the users anymore.

[Bug] missing utf support

When i try to add template with a title or content that contains diacritical letters i get:

ActiveRecord::StatementInvalid (Mysql2::Error: Incorrect string value: '\xC4\x85' for column 'content' at row 1: UPDATE issue_templates SET title = 'template', content = 'ฤ…', updated_at = '2016-06-15 13:35:47' WHERE issue_templates.id = 1):

Bug with displaying icon in admin panel

default

nginx 1.12 + mod passenger
Environment:
Redmine version 3.4.3.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Filesystem
Redmine plugins:
redmine_issue_checklist 2.1.0
redmine_issue_template 1.0.7
redmine_lightbox2 0.4.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.