Coder Social home page Coder Social logo

akiko-pusu / redmine_issue_templates Goto Github PK

View Code? Open in Web Editor NEW
198.0 22.0 117.0 1.24 MB

Maintenance Repository - https://github.com/agileware-jp/redmine_issue_templates

Home Page: https://www.redmine.org/plugins/redmine_issue_templates

License: GNU General Public License v2.0

Ruby 54.78% HTML 32.40% JavaScript 8.96% CSS 3.00% Shell 0.24% Dockerfile 0.62%
redmine redmine-plugin tracker oss

redmine_issue_templates's People

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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_issue_templates's Issues

Global Issue Template?

Is there a way to add a template in the root project and enable it automaticly for all child-projects? Like a global issue template?

We are using redmine to track over 6000 artworks in a museum and every new exibition will add another 2000 sub-projects... I will go crazy if I have to manually enable "inherite from parent" option

[UI Proposal] Move template area on the same row with the trackers

Hi @akiko-pusu,

I really like your plugin and I want to propose some small UI changes as following:

  1. move template area block on the same row with the Tracker dropdown
  2. show only icons for the actions instead on icons + text
  3. rename Issue template to Template

Some reasons behind this proposals:

  • The templates are very related to trackers.
  • I find it a little bit disturbing for the eye how the fields (eg: subject, description) from the upper part of the issue form layout moves up/down depending on the tracker (if it has or not templates) .
  • Save some space in the form layout.

Please let me know what do you think about these changes. I can make a PR (I've some working code) if you're interested.

Current screen:
screen shot 2017-08-06 at 22 41 42

Proposed screen:
screen shot 2017-08-06 at 22 39 58

can't display issue_template when i create a new issue

Uncaught ReferenceError: ISSUE_TEMPLATE is not defined
at HTMLDocument. (new:239)
at j (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
at Object.fireWith [as resolveWith] (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
at Function.ready (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
at HTMLDocument.J (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)

0.1.7 "Orphaned templates from tracker" does not work in issue templates list page of project.

Hi akiko, thank you for providing this plugin.
I have found an issue below:

When I click 'Orphaned templates from tracker' link in Project Settings issue template list page, there is no list is shown.
And this error is logged.

Started GET "/redmine/projects/issue_templates/issue_templates/orphaned_templates" for 192.168.1.30 at 2017-08-04 11:29:51 +0900
Processing by IssueTemplatesController#orphaned_templates as JS
  Parameters: {"project_id"=>"issue_templates"}
  Current user: admin (id=1)
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms)

NameError (undefined local variable or method `class_name' for #<Class:0x007f5c3fe20ed0>
Did you mean?  class_eval):
  plugins/redmine_issue_templates/app/models/concerns/issue_template/common.rb:33:in `block (2 levels) in <module:Common>'
  plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb:152:in `orphaned_templates'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

my environment:

Redmine  3.4.2.stable
Ruby     2.4.1-p111 (2017-03-22) [x86_64-linux]
Rails    4.2.8

If I change class_name to self.name in 'plugins/redmine_issue_tempaltes/app/models/concerns/issue_template/commn.rb:33', it looks like be worked right.

Thanks.

can not load the template

when create new issue , I can not use the global issue template with errors

F, [2016-06-08T20:47:58.748026 #5577] FATAL -- :
ActiveRecord::RecordNotFound (Couldn't find IssueTemplate with 'id'=1):
plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb:81:in load' lib/redmine/sudo_mode.rb:63:insudo_mode'

could you please help me, Thanks so much.

my enviroment is
Redmine 3.2.3 with mysql. and rails 4.2.x
I do not know what happened. but I used it correctly with previous version.

Set a global issue template as default

Hallo,
First I would like to thank all people that brought the plugin to this excellent state.

My feature-request: In Projects it is possible to set new issue templates as default for a tracker. Unfortunately this setting is not existing for global templates. Is it possible to include a "default-setting" in global template managment as well?

Best regards

Ulle

Stop to use jbuilder for rendering json.

Follow the style of Redmine itself.

E.g. From _list_templates.jbuilder to _list_templates.api.rsb

api.array :global_issue_templates do
  global_issue_templates.each do |template|
    api.id template.id
    api.tracker_id template.tracker_id
    api.tracker_name template.tracker.id
    api.title template.title
    api.issue_title template.issue_title
    api.description template.description
    api.note template.note
    api.enabled template.enabled
    api.updated_on template.updated_on
    api.created_on template.created_on
    api.updated_on template.updated_on
  end
end

Controller:

      format.api do
          render action: '_list_templates',
            locals: { default_template: default_template,
                           issue_templates: @issue_templates,
                           inherit_templates: @inherit_templates,
                           global_issue_templates: @global_templates }
      end
      #format.json do
      #  render action: '_list_templates', formats: 'json', handlers: 'jbuilder',
      #         locals: { default_template: default_template,
      #                   issue_templates: @issue_templates,
      #                   inherit_templates: @inherit_templates,
      #                   global_issue_templates: @global_templates }
      #end

not compatible with redmine_track_control and redmine accept

it seems not compatible with the redmine_track_control, please check it.
redmine_track_control

https://github.com/fishermans/redmine_track_control.git

error log

An ActionView::Template::Error occurred in issues#new:

  undefined method `id' for nil:NilClass
  plugins/redmine_issue_templates/app/views/issue_templates/_issue_select_form.html.erb:34:in `_plugins_redmine_issue_templates_app_views_issue_templates__issue_select_form_html_erb___2990508753618961756_23207420'


-------------------------------
Request:
-------------------------------

* URL : http://192.168.1.41/projects/web/issues/new
  * HTTP Method: GET
  * IP address : 192.168.60.239
  * Parameters : {"controller"=>"issues", "action"=>"new", "project_id"=>"web"}
  * Timestamp  : 2016-06-15 12:34:14 UTC
  * Server : jira
  * Rails root : /opt/redmine
  * Process: 12008

-------------------------------
Session:
-------------------------------

  * session id: "0941212de1a94ec9b9fd3df0238dbe95"
  * data: {"session_id"=>"0941212de1a94ec9b9fd3df0238dbe95",
   "user_id"=>80,
   "tk"=>"dcaf6e0369082e16232a3df700ab12698df6e3fa",
   "sudo_timestamp"=>1465994047,
   "my_page_sort"=>"none",
   "_csrf_token"=>"b27045Op97N31rH29Fp1Cc4N7gy5P2D2cwN2xKpjVTc=",
   "recent_projects"=>[11]}

-------------------------------
Environment:
-------------------------------

  * GATEWAY_INTERFACE                              : CGI/1.2
  * HTTP_ACCEPT                                    : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  * HTTP_ACCEPT_ENCODING                           : gzip, deflate, sdch
  * HTTP_ACCEPT_LANGUAGE                           : zh-CN,zh;q=0.8
  * HTTP_CONNECTION                                : keep-alive
  * HTTP_COOKIE                                    : _redmine_session=Qm5PZUY0NzEwc0hWN0lRQnFJdnNiOE5paWtjTC9UNUxIQTRBZTF4ODlPTzcyOGR0b05UTUpGd0tWZFNNN1A3Unh3QnNGNVZCRVBNbWZLbklrZnNocnFGUkg5Qm5QL1RJT0g5Nnk0WC9wZTEza1YrT2RzQUlWSFMvOTIwOUpJdFpJMWVLbmhEYkNnVUpBY3pVa1djYmZYUTRML2s0NXdrbjJMM0dzVGZkak5pTmRIS3lxeUl3TDhobWN5RVRsYXYrcnlKbTRqTzRLMWVUS0hGcFA0Q0NRYkpJbGhPdHNKbHhiVDJ4V0JCdEE3Sk1ibjVVc2pQODExbmJUeU9zaHBjZHdtSnd5SzFKTFJmU1gzZXdpOTFNUmQ5ZUQxTHAwVlc2SHBJdFZqeThzT1dkL3djY01JTmxGdlhwK2JFay93YTBhM3didFpKcmp6T1V1N1RMaEh2TVhLZExMcXF3amlBblpVdDQzQmxDSWM4cGRzNnVDUkF1Mk1MNGJCTXFyK0Y4LS1OZ3VKK2tOeEh1bUZUVDV6WUtGZmlBPT0%3D--d5c745fa1d322f506c4e7949afbaf68886c4f339
  * HTTP_HOST                                      : 192.168.1.41
  * HTTP_IF_NONE_MATCH                             : W/"4d8c6a4027a57d2aee7d257fea1ee57a"
* HTTP_REFERER : http://192.168.1.41/projects/web?jump=my
  * HTTP_UPGRADE_INSECURE_REQUESTS                 : 1
  * HTTP_USER_AGENT                                : Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
  * HTTP_VERSION                                   : HTTP/1.1
  * ORIGINAL_FULLPATH                              : /projects/web/issues/new
  * ORIGINAL_SCRIPT_NAME                           :
  * PATH_INFO                                      : /projects/web/issues/new
  * QUERY_STRING                                   :
  * REMOTE_ADDR                                    : 192.168.60.239
  * REQUEST_METHOD                                 : GET
  * REQUEST_PATH                                   : /projects/web/issues/new
  * REQUEST_URI                                    : /projects/web/issues/new
  * ROUTES_50047920_SCRIPT_NAME                    :
  * SCRIPT_NAME                                    :
  * SERVER_NAME                                    : 192.168.1.41
  * SERVER_PORT                                    : 80
  * SERVER_PROTOCOL                                : HTTP/1.1
  * SERVER_SOFTWARE                                : thin 1.7.0 codename Dunder Mifflin
  * action_controller.instance                     : #<IssuesController:0x00000005b8e5c0>
  * action_dispatch.backtrace_cleaner              : #<Rails::BacktraceCleaner:0x00000005451550>
  * action_dispatch.cookies                        : #<ActionDispatch::Cookies::CookieJar:0x00000005bc3798>
  * action_dispatch.cookies_digest                 :
  * action_dispatch.cookies_serializer             :
  * action_dispatch.encrypted_cookie_salt          : encrypted cookie
  * action_dispatch.encrypted_signed_cookie_salt   : signed encrypted cookie
  * action_dispatch.http_auth_salt                 : http authentication
  * action_dispatch.key_generator                  : #<ActiveSupport::CachingKeyGenerator:0x000000060bbc50>
  * action_dispatch.logger                         : #<Logger:0x00000006154c48>
  * action_dispatch.parameter_filter               : [:password]
  * action_dispatch.redirect_filter                : []
  * action_dispatch.remote_ip                      : 192.168.60.239
  * action_dispatch.request.content_type           :
  * action_dispatch.request.formats                : [#<Mime::Type:0x00000002bd3bf0 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html", @hash=-581062547691683792>]
  * action_dispatch.request.parameters             : {"controller"=>"issues", "action"=>"new", "project_id"=>"web"}
  * action_dispatch.request.path_parameters        : {:controller=>"issues", :action=>"new", :project_id=>"web"}
  * action_dispatch.request.query_parameters       : {}
  * action_dispatch.request.request_parameters     : {}
  * action_dispatch.request.unsigned_session_cookie: {"session_id"=>"0941212de1a94ec9b9fd3df0238dbe95", "user_id"=>80, "tk"=>"dcaf6e0369082e16232a3df700ab12698df6e3fa", "sudo_timestamp"=>1465994047, "my_page_sort"=>"none", "_csrf_token"=>"b27045Op97N31rH29Fp1Cc4N7gy5P2D2cwN2xKpjVTc=", "recent_projects"=>[11]}
  * action_dispatch.request_id                     : 6464193d-83a5-4856-97f5-9c045047ce73
  * action_dispatch.routes                         : #<ActionDispatch::Routing::RouteSet:0x00000005f75760>
  * action_dispatch.secret_key_base                : 0766de1a38458f6ed259d92d32f935a6d1ca6679e6bf4ee258716df9e83186497557be97146359d2
  * action_dispatch.secret_token                   :
  * action_dispatch.show_detailed_exceptions       : false
  * action_dispatch.show_exceptions                : true
  * action_dispatch.signed_cookie_salt             : signed cookie
  * async.callback                                 : #<Method: Thin::Connection#post_process>
  * async.close                                    : #<EventMachine::DefaultDeferrable:0x00000005b37720>
  * rack.errors                                    : #<IO:0x00000001bdd598>
  * rack.input                                     : #<StringIO:0x00000005b058b0>
  * rack.multiprocess                              : false
  * rack.multithread                               : true
  * rack.request.cookie_hash                       : {"_redmine_session"=>"Qm5PZUY0NzEwc0hWN0lRQnFJdnNiOE5paWtjTC9UNUxIQTRBZTF4ODlPTzcyOGR0b05UTUpGd0tWZFNNN1A3Unh3QnNGNVZCRVBNbWZLbklrZnNocnFGUkg5Qm5QL1RJT0g5Nnk0WC9wZTEza1YrT2RzQUlWSFMvOTIwOUpJdFpJMWVLbmhEYkNnVUpBY3pVa1djYmZYUTRML2s0NXdrbjJMM0dzVGZkak5pTmRIS3lxeUl3TDhobWN5RVRsYXYrcnlKbTRqTzRLMWVUS0hGcFA0Q0NRYkpJbGhPdHNKbHhiVDJ4V0JCdEE3Sk1ibjVVc2pQODExbmJUeU9zaHBjZHdtSnd5SzFKTFJmU1gzZXdpOTFNUmQ5ZUQxTHAwVlc2SHBJdFZqeThzT1dkL3djY01JTmxGdlhwK2JFay93YTBhM3didFpKcmp6T1V1N1RMaEh2TVhLZExMcXF3amlBblpVdDQzQmxDSWM4cGRzNnVDUkF1Mk1MNGJCTXFyK0Y4LS1OZ3VKK2tOeEh1bUZUVDV6WUtGZmlBPT0=--d5c745fa1d322f506c4e7949afbaf68886c4f339"}
  * rack.request.cookie_string                     : _redmine_session=Qm5PZUY0NzEwc0hWN0lRQnFJdnNiOE5paWtjTC9UNUxIQTRBZTF4ODlPTzcyOGR0b05UTUpGd0tWZFNNN1A3Unh3QnNGNVZCRVBNbWZLbklrZnNocnFGUkg5Qm5QL1RJT0g5Nnk0WC9wZTEza1YrT2RzQUlWSFMvOTIwOUpJdFpJMWVLbmhEYkNnVUpBY3pVa1djYmZYUTRML2s0NXdrbjJMM0dzVGZkak5pTmRIS3lxeUl3TDhobWN5RVRsYXYrcnlKbTRqTzRLMWVUS0hGcFA0Q0NRYkpJbGhPdHNKbHhiVDJ4V0JCdEE3Sk1ibjVVc2pQODExbmJUeU9zaHBjZHdtSnd5SzFKTFJmU1gzZXdpOTFNUmQ5ZUQxTHAwVlc2SHBJdFZqeThzT1dkL3djY01JTmxGdlhwK2JFay93YTBhM3didFpKcmp6T1V1N1RMaEh2TVhLZExMcXF3amlBblpVdDQzQmxDSWM4cGRzNnVDUkF1Mk1MNGJCTXFyK0Y4LS1OZ3VKK2tOeEh1bUZUVDV6WUtGZmlBPT0%3D--d5c745fa1d322f506c4e7949afbaf68886c4f339
  * rack.request.query_hash                        : {}
  * rack.request.query_string                      :
  * rack.run_once                                  : false
  * rack.session                                   : #<ActionDispatch::Request::Session:0x00000005b637d0>
  * rack.session.options                           : #<ActionDispatch::Request::Session::Options:0x00000005b63550>
  * rack.url_scheme                                : http
  * rack.version                                   : [1, 0]

-------------------------------
Backtrace:
-------------------------------

  plugins/redmine_issue_templates/app/views/issue_templates/_issue_select_form.html.erb:34:in `_plugins_redmine_issue_templates_app_views_issue_templates__issue_select_form_html_erb___2990508753618961756_23207420'
  plugins/redmine_issue_templates/lib/issue_templates_issues_hook.rb:27:in `view_issues_form_details_top'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:96:in `call_hook'
  app/views/issues/_form.html.erb:2:in `block in _app_views_issues__form_html_erb___3961347763519880095_37991140'
  app/helpers/application_helper.rb:1038:in `labelled_fields_for'
  app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb___3961347763519880095_37991140'
  plugins/redmine_workflow_enhancements/lib/workflow_enhancements/patches/action_view_rendering.rb:53:in `render_with_workflow_enhancements'
  app/views/issues/new.html.erb:11:in `block in _app_views_issues_new_html_erb___4442599922157199054_40004600'
  app/helpers/application_helper.rb:1031:in `labelled_form_for'
  app/views/issues/new.html.erb:5:in `_app_views_issues_new_html_erb___4442599922157199054_40004600'
  app/controllers/issues_controller.rb:130:in `block (2 levels) in new'
  app/controllers/issues_controller.rb:129:in `new'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error. Back

hi,i met a mistake when i create a new project use redmine_issue_templates:
Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

When i see the log

have this mistake :

ActionView::Template::Error (uninitialized constant IssueTemplates::ProjectsHelperMethodsIssueTemplates::IssueTemplateSetting):
1:

<%=l(:label_settings)%>


2:
3: <%= render_tabs project_settings_tabs %>
4:
5: <% html_title(l(:label_settings)) -%>
plugins/redmine_issue_templates-0.1.6/lib/issue_templates/projects_helper_patch.rb:17:in project_settings_tabs_with_issue_templates' plugins/redmine_work_time/lib/work_time_projects_helper_patch.rb:14:in project_settings_tabs_with_work_time'
app/views/projects/settings.html.erb:3:in _app_views_projects_settings_html_erb__515293623_87205836' lib/redmine/sudo_mode.rb:63:in sudo_mode'
plugins/redmine_dmsf/lib/redmine_dmsf/webdav/no_parse.rb:33:in `call'

Redmine 3.3.0 - Internal error when trying to access new issues form from all issues list

Since the Redmine update to 3.3.0 there is a new link to create an issue from the issue list view:

Projects -> View all issues -> New issue (direct link is /redmine/issues/new) instead of the previous way to create a new issue, accessible from inside a project, e.g. /redmine/projects/project1/issues/new

When using the issue templates plugin, this new link does not work:
new_issue

Could you provide a fix for this error?

Every rake command now fails with "spec failed."

Today I installed the latest (master) version of the plugin. I noticed the Gemfile requires only jbuilder, therefore I executed a bundle install (by default this is without dev and test). The migration went fine and I was able to configure it in the Redmine settings.

We have a "fetch_changesets" call which runs every 5 minutes and I started to get e-mail notifications saying:

spec failed.
yard not installed (gem install yard)

I added yard to the main Gemfile and installed it. The yard message went away but spec failed remains there. Any idea what is causing this, how to debug it further and fix?

For a test I also tried the 1.5 version but this is throwing a different error:

yardoc failed.

My env details:

Environment:
  Redmine version                3.3.1.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  4.2.7.1
  Environment                    production
  Database adapter               Mysql2

Checklist not loading from Template

Hey, first I wanna thank you for your awesome plugin.
However, I'm experiencing an issue I'm not able to fix by myself:

I have Checklist Plugin (Free Version) installed, but when I'm adding Checklist Items to a Template they just disappear when I'm loading the template again and are not showing up when using the Template on an issue.

Is this because I have the Free Version only or is this a bug? Everything else works fine!

EDIT: Checking my Redmine Log, I'm able to see that the checklist seems to be saved....but they're not even showing up on the template overview directly after saving the template.
On global templates, everything works fine. Only project templates won't work.

logscreen

Rus lang

The plugin does not work with the Russian language, when you save the template gives 500 error.

Unable to see if there is a new version

At the plugin page in Redmine, you can easily check for new versions of plugins.
Somehow Redmine cannot check if there is an update for this plugin, while it can for your other plugin.

redmine

Redmine 3.3.0 - Cannot select template

When navigating to the new issue form, very briefly one can see the template selection menu flashing, then disappears. Therefore no template can be selected. We're very much hoping for a quick fix at our company as we're using this template plugin a lot! Thanks

install and unistall failed

Hi developer, I really need help on this:

I migrate the database from old machine to a new one, install this plugin and on some pages, there will be a 500 internal error.
the log shows the tables are not correct, so I decided to drop the four tables of issue_templates, issue_template_settings, global_issue_templates, global issue_templates_projects, then try to re-install the plugin.

but rake never works after that because of "table not found"...

Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
== 20160829001530 ChangeGlobalIssueTemplateEnabledColumn: migrating ===========
-- change_column(:global_issue_templates, :enabled, :boolean, {:default=>false, :null=>false})
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Table 'redmine.global_issue_templates' doesn't exist: SHOW FULL FIELDS FROM `global_issue_templates`

I thought when installing the plugin, the scripts should create the table? could you let me know how to re-install in such a situation?

thank you in advance.

デフォルトを指定していた際の本文(説明)上書き

デフォルトで設定したテンプレートがあるときに、テンプレートを選択すると、説明文に追記されてしまいます。もちろん「タイトルと詳細をクリア」を押して適用すれば大丈夫なんですが、できれば上書き(一度valをリセットしてからappend)のほうが効率としては高い気がしました。
設定(既存のデフォルト、有効のboolean設定と同列で上書きオプション)としての提供でもかまいませんが検討をお願いいたします。

Change Template index / Update UI.

Related #115.
Change UI to prevent unexpected template deletion.

  • Add alert / confirmation message when user try to delete template.
  • Change message, help for “Disabled flag”. (To use this feature such as soft deleted flag)

After I update this, database migration was not working.

Then I cretae table script add

CREATE TABLE IF NOT EXISTS global_issue_templates (
id int(11) NOT NULL AUTO_INCREMENT,
title varchar(255) DEFAULT NULL,
issue_title varchar(255) DEFAULT NULL,
tracker_id int(11) DEFAULT NULL,
author_id int(11) DEFAULT NULL,
note varchar(255) DEFAULT NULL,
description text,
enabled tinyint(1) NOT NULL DEFAULT '0',
position int(11) DEFAULT NULL,
created_on datetime DEFAULT NULL,
updated_on datetime DEFAULT NULL,
checklist_json text,
PRIMARY KEY (id),
KEY index_global_issue_templates_on_author_id (author_id),
KEY index_global_issue_templates_on_tracker_id (tracker_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS global_issue_templates_projects (
project_id int(11) DEFAULT NULL,
global_issue_template_id int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS issue_templates (
id int(11) NOT NULL AUTO_INCREMENT,
title varchar(255) DEFAULT NULL,
issue_title varchar(255) DEFAULT NULL,
project_id int(11) NOT NULL,
tracker_id int(11) DEFAULT NULL,
author_id int(11) DEFAULT NULL,
note varchar(255) DEFAULT NULL,
description text,
enabled tinyint(1) NOT NULL DEFAULT '0',
is_default tinyint(1) NOT NULL DEFAULT '0',
enabled_sharing tinyint(1) NOT NULL DEFAULT '0',
position int(11) NOT NULL DEFAULT '1',
created_on datetime DEFAULT NULL,
updated_on datetime DEFAULT NULL,
checklist_json text,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS issue_template_settings (
project_id int(11) DEFAULT NULL,
help_message text,
enabled tinyint(1) NOT NULL DEFAULT '0',
should_replaced tinyint(1) DEFAULT '0',
inherit_templates tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

template filter click with js error

New issue with template, when I click template filter, there's nothing happened.
check the console with error s follows:

VM6188:23 GET http://192.168.1.41/projects/demo/issue_templates/list_templates?issue_tracker_id=1 500 (Internal Server Error)
send
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4ajax
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4openDialog
@ issue_templates.js:29(anonymous function)
@ VM6188:23dispatch
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:3r.handle
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:3
VM6188:23 XHR finished loading: GET "http://192.168.1.41/projects/demo/issue_templates/list_templates?issue_tracker_id=1".
send
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4ajax
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4openDialog
@ issue_templates.js:29(anonymous function)
@ VM6188:23dispatch
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:3r.handle
@ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:3

the log file with error

F, [2016-06-22T13:28:47.948590 #32444] FATAL -- : 
ActionView::Template::Error (undefined method `each' for nil:NilClass):
    26:         </td>
    27:       </tr>
    28: <% end %>
    29: <% inherit_templates.each do |template| %>
    30:       <tr class="<%= cycle('odd', 'even') %> template_data">
    31:         <td>
    32:           <%= template.title %>
  plugins/redmine_issue_templates/app/views/issue_templates/_list_templates.html.erb:29:in `_plugins_redmine_issue_templates_app_views_issue_templates__list_templates_html_erb___4221372361586885076_70188302535700'
  plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb:170:in `block (2 levels) in list_templates'
  plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb:168:in `list_templates'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

I use redmine 3.2 and chrome. Please check it. Thanks.

Ability to add custom fields & checkboxes

Great plugin, I've been using it a lot lately.

One addition to improve upon it would be the ability to add custom fields and fields from other plugins.

The plugin I specifically had in mind is the Redmine checklist plugin (https://www.redmine.org/plugins/redmine_checklists). I have several issue templates, and unfortunately I still need to add checklists manually. Having the ability integrated these into Issue Templates would improve productivity.

Glitch with form - template controls placement

Noticed a glitch:
template controls on New Issue form appears above "tracker" field for a moment, and then jump below "tracker" field

Please see illustrations below.
first moment:
template-field-moment

moment after:
template-field-after

Add “undo” option to revert issue title and description which overwrited by loaded template.

Scenario:

First, operator open new issue and fill title and description field without template.
Then, operator find template pulldown and he/she carelessly chooses one of the template.
Finally, title and description that operator filled out with a pretty long time disappeared or appended template text.

Feature:

Add option (such as revert link or button) to revert title / description overwrited via template.
Maybe this would be enabled only modifying fronted (JS).

ru translation

Hi!

Thank you a lot for your plugin. It seems to be very useful for our purposes.

I just added russian translation for all labels. It would be great if you will add it to your branch.

You can find ru.yml here: https://pastebin.com/EYWL0zD3

Templates vanished

Hi,

first of all thank you very much for this plugin it is really great.

I created 4 different templates each on for a single tracker. The templates are placed in one project and subprojects inherit these templates.

Now the problem is, that 2 of the 4 templates have vanished. They are not selectable anymore and also are not listed in the configurtion.

As i am the only administrator i would sugest that they are not deleted by accident. Any idea what the problem might be or where i can search?

Best regards Christian

System Setup:

Environment:
  Redmine version           3.1.0.stable.14520
  Ruby version                 2.2.1-p85 (2015-02-26) [x86_64-linux]
  Rails version                  4.2.3
  Environment                 production
  Database adapter         Mysql2         
Redmine plugins:
  redmine_issue_templates        0.1.4

Support for variables or placeholders

First of all, thanks for this convenient plugin! It definitely enhances Redmine's user experience.

I'd like the templates I create to be real templates, i.e. using placeholders or variables which can then easily be filled with proper values.
There'd be two different types of variables: automatically filled ones and filled by template user.

The automatically filled ones should be good for dates etc. I have a couple of monthly reoccurring issues, which has the month name and the year in the title field. Would be nice to do something like: {{@date}} which format can be manipulated.

The user filled fields should be something like {{requirements}} where one could insert a value for this variable when selecting the template. To be honest, I have no good idea how to ask for the value in a Redmine way. Maybe a Javascript prompt after selecting the template or additional fields outside the description field where one could type the value in and it is replaced only after clicking the issue submission button?

Using parameterized templates would definitely improve reusage and usage conventions of issue templates.

You have already activated rake 10.4.2, but your Gemfile requires rake 12.0.0

I have redmine redmine-3.3.2-2 installed with bitnami installer (https://bitnami.com/stack/redmine/installer) on centos 7.3 64 bit

I want to install this plugin and I followed the instructions then at step 2 it fails with following output:

[root@redmine plugins]# rake redmine:plugins:migrate RAILS_ENV=production
(in /opt/redmine-3.3.2-2/apps/redmine/htdocs)
rake aborted!
Gem::LoadError: You have already activated rake 10.4.2, but your Gemfile requires rake 12.0.0. Prepending `bundle exec` to your command may solve this.
/opt/redmine-3.3.2-2/apps/redmine/htdocs/config/boot.rb:4:in `<top (required)>'
/opt/redmine-3.3.2-2/apps/redmine/htdocs/config/application.rb:1:in `<top (required)>'
/opt/redmine-3.3.2-2/apps/redmine/htdocs/Rakefile:5:in `<top (required)>'
LoadError: cannot load such file -- bundler/setup
/opt/redmine-3.3.2-2/apps/redmine/htdocs/config/boot.rb:4:in `<top (required)>'
/opt/redmine-3.3.2-2/apps/redmine/htdocs/config/application.rb:1:in `<top (required)>'
/opt/redmine-3.3.2-2/apps/redmine/htdocs/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

I don't know if this is actually an issue with redmine_issue_templates, but I don't know where else to ask.

0.1.4 not working

Hi,

Throws an error if go to project settings.

screenshot 2017-03-01 15 32 10

0.1.3 works fine.

which additional information can i provide to fix the issue?

system is centos 7.3 with ruby 2.0.

syntax error, unexpected tLABEL, expecting ')'

Plugin version 0.1.4

ActionView::Template::Error (/home/redmine/redmine/plugins/redmine_issue_templates/app/models/issue_template_setting.rb:6: syntax error, unexpected tLABEL, expecting ')'
def apply_template_to_child_projects(project_id:)

/home/redmine/redmine/plugins/redmine_issue_templates/app/models/issue_template_setting.rb:11: syntax error, unexpected tLABEL, expecting ')'
def unapply_template_from_child_projects(project_id:)

Environment:
Redmine version 2.6.10.stable
Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]
Rails version 3.2.22.2
Environment production
Database adapter Mysql2

Template is loaded after the error when required fields are not filled.

いつもご対応いただき、ありがとうございます。

必須フィールドが未入力でチケットを登録しようとした時のエラーで、テンプレートがロードされてしまいます。
プラグインの設定で「Replace subject and description」をONにしていると、テンプレートのロードにより記載内容が消えてしまい、ユーザビリティが良くありません。
この場合はロードしないよう、修正できないでしょうか?

Environment

  • redmine: 3.3.0
  • redmine_issue_templates: 0.1.2

Italian translation sets en: language instead of it:

Second line of config/locales/it.yml is "en:" and should be changed to "it:", otherwise you will see Italian strings if your Redmine language is set to English.

In a running environment, restart the Redmine app to make the change active.

(plugin version 0.1.4)

Problems to install the plugin in new redmine 3.3.2

Hello! First of all, thank you for your plugin!

I have a issue when i try to install this plugin, i dont know if the problem its with my ruby or what, maybe you can help me :)

I have installed the redmine in Ubuntu with bitnami instaler -> bitnami-redmine-3.3.2-2-linux-x64-installer.run
When i put the plugin in the directory with the name "redmine_issue_templates" and execute a migration de results is:

/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/early_time.rb:20: warning: already initialized constant Rake::EARLY
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/early_time.rb:20: warning: previous definition of EARLY was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/late_time.rb:16: warning: already initialized constant Rake::LATE
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/late_time.rb:16: warning: previous definition of LATE was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:3: warning: already initialized constant Rake::Backtrace::SYS_KEYS
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:3: warning: previous definition of SYS_KEYS was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:4: warning: already initialized constant Rake::Backtrace::SYS_PATHS
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:4: warning: previous definition of SYS_PATHS was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:7: warning: already initialized constant Rake::Backtrace::SUPPRESSED_PATHS
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:7: warning: previous definition of SUPPRESSED_PATHS was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:11: warning: already initialized constant Rake::Backtrace::SUPPRESSED_PATHS_RE
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:11: warning: previous definition of SUPPRESSED_PATHS_RE was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:15: warning: already initialized constant Rake::Backtrace::SUPPRESS_PATTERN
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb:15: warning: previous definition of SUPPRESS_PATTERN was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake.rb:69: warning: already initialized constant FileList
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake.rb:69: warning: previous definition of FileList was here
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake.rb:70: warning: already initialized constant RakeFileUtils
/var/lib/gems/2.4.0/gems/rake-12.0.0/lib/rake.rb:70: warning: previous definition of RakeFileUtils was here
yard not installed (gem install yard)
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/servicios/redmine-3.3.3-1/apps/redmine/htdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
rake aborted!
SystemStackError: stack level too deep

I have installed gem yard ok (gem install yard), but the problem persist.

Seems that ruby its configurated in two different routes?? Do you know what is my problem and how can i resolve them?

Regards.

Declare namespace in JavaScript

In case Redmine itself or some other plugin has the same name function or variable, unexpected behavior may be happened. Avoiding namespace conflict is required.

The body content is not replaced (subject, description).

When I change tracker, for example from "Bug" to "Task" (I have 2 different templates for "Bug" and for "Task"), the body content which was filled is not replaced. I can replace content just after clicking on "Clear subject and description text".
For example, I use "Bug" template by default, but if user want to change from "Bug" to "Task" he need to click "Clear subject and description text" button. Plugin should change body content automatically, when I change templates.
It is very uncomfortable for us.
It you fix it - it will be great!
Thanks!

cannot load issue template

@akiko-pusu , when create new issue, cannot load issue template.

error log

A NameError occurred in issue_templates#load:

undefined local variable or method checklist_json' for #<GlobalIssueTemplate:0x007fb8b079d108> plugins/redmine_issue_templates/app/models/global_issue_template.rb:35:inchecklist'

Request:


Session:

  • session id: "6d78f6e25bf633349961315313f7b92f"
  • data: {"session_id"=>"6d78f6e25bf633349961315313f7b92f",
    "user_id"=>8,
    "tk"=>"f57f69f7419af208a5fe484464a73688ee6c3cf4",
    "sudo_timestamp"=>1473041388,
    "_csrf_token"=>"eNZEynNjtNO5Vo81cg6tPF0jgigzpUZsezkP1rrhbVQ=",
    "recent_projects"=>[10, 2],
    "query"=>
    {:project_id=>2,
    :filters=>{"status_id"=>{:operator=>"o", :values=>[""]}},
    :group_by=>nil,
    :column_names=>nil,
    :totalable_names=>[:estimated_hours, :spent_hours]},
    "issues_index_sort"=>"id:desc"}

Environment:

  • CONTENT_LENGTH : 37
  • CONTENT_TYPE : application/x-www-form-urlencoded; charset=UTF-8
  • GATEWAY_INTERFACE : CGI/1.2
  • HTTP_ACCEPT : /
  • HTTP_ACCEPT_ENCODING : gzip, deflate
  • HTTP_ACCEPT_LANGUAGE : zh-CN,zh;q=0.8,en;q=0.6
  • HTTP_CONNECTION : keep-alive
  • HTTP_COOKIE : autologin=df95bc5acf08ba7db8767eb2c92997aaf2089912; _redmine_session=R3Fuc09MWGUzTDVTNFA2MnBxcml4Tk9ZNHhMNXIxRmtEb3ZkaU1jb0I5b2ttazM5ODU3OFdKS1RFOFdMY1QzaTBOUGl4SkZianVTb1RwMEFZUmlkdDBWVTZDTS9iTGtQcDMxb1Z6amQ1d3B6TmlDWEV5M1NCL0Y4aGlUTnZCRkp5V2tKK1dmTVhaYzFIc1EvZThRQXhReFZ1bVRFdVZWZ2I2U0xIVFhHSUdvMThNUGxTdCtpYmxNMHk3eUt4SDRrWHRqNkpDL2h5OWdiSFMyaDAwK0pzWWh4MXlEYnAyb1Fqb0ZPeURqejRFVnNUMW9uajVlK3ptMjk1T25TUEtGNzFvWmZoQ3dKU3lpVWJvWlJwUUE4Zkpqbm04U0x1YURIK2VZTzRWR3VnRVNKSDhpd3JQSG0zc1Q0cm5waGJRTHc3ZUxwZTJGL0RnY1VGaFhvQU02M2NjZ2svYU1WMitib01mYUpjajNEV1M0bHpGK3I0b3crR2UzZUNKRUNSNUNwL001NHJsUVQzb0VuVXlxdU9xOElaYWU3VnpIY2k5WVUwa0JyM2NxTVJiVEw5YzhSSFNpK3YzcHFBQWNHcjFJQ2doL3dYbmIxbEVNb0NkWkp6WEN4MDlTcmNRRFUxNnk2M0lDbVN6TmFsMFdjQzFPWXp4VmFtRXZDekU3THZ4QktOZkdCNThrbStmTlZRRG9IQkRHd3pyY3NuZUtBWHVUQndoUy9ZcFBlMnNkbTFZamJNNGVVQTdSWjBkUnpOakdBVzR2RjMxU3JYRXI1b3NvRG1rWjV3NkpHUldjdk9DRWFPT0JOazBIRFdhQT0tLWJsdjNhWmloNi9mNGwvQXJmWkpTYkE9PQ%3D%3D--f5332117e89c078fdbc9762dfb78111e1199cad1
  • HTTP_HOST : 192.168.1.41
  • HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36
  • HTTP_VERSION : HTTP/1.1
  • HTTP_X_CSRF_TOKEN : leHBqak/1ei91D5iKCasSlgCZy+D/0c8ia46LSnmBuntN4Vj2lxhOwSCsVdaKAF2BSHlB7BaAVDylzX7kwdrvQ==
  • HTTP_X_REQUESTED_WITH : XMLHttpRequest
  • ORIGINAL_FULLPATH : /projects/10/issue_templates/load?is_triggered_by_status=false
  • ORIGINAL_SCRIPT_NAME :
  • PATH_INFO : /projects/10/issue_templates/load
  • QUERY_STRING : is_triggered_by_status=false
  • REMOTE_ADDR : 192.168.60.238
  • REQUEST_METHOD : POST
  • REQUEST_PATH : /projects/10/issue_templates/load
  • REQUEST_URI : /projects/10/issue_templates/load?is_triggered_by_status=false
  • ROUTES_49344860_SCRIPT_NAME :
  • SCRIPT_NAME :
  • SERVER_NAME : 192.168.1.41
  • SERVER_PORT : 80
  • SERVER_PROTOCOL : HTTP/1.1
  • SERVER_SOFTWARE : thin 1.7.0 codename Dunder Mifflin
  • action_controller.instance : #IssueTemplatesController:0x007fb8b08d8608
  • action_dispatch.backtrace_cleaner : #Rails::BacktraceCleaner:0x000000057ed6a0
  • action_dispatch.cookies : #ActionDispatch::Cookies::CookieJar:0x007fb8b08afcd0
  • action_dispatch.cookies_digest :
  • action_dispatch.cookies_serializer :
  • action_dispatch.encrypted_cookie_salt : encrypted cookie
  • action_dispatch.encrypted_signed_cookie_salt : signed encrypted cookie
  • action_dispatch.http_auth_salt : http authentication
  • action_dispatch.key_generator : #ActiveSupport::CachingKeyGenerator:0x000000044ec510
  • action_dispatch.logger : #ActiveSupport::Logger:0x00000005c63478
  • action_dispatch.parameter_filter : [:password]
  • action_dispatch.redirect_filter : []
  • action_dispatch.remote_ip : 192.168.60.238
  • action_dispatch.request.accepts : [#<Mime::Type:0x007fb8b08d2708 @synonyms=[], @symbol=nil, @string="/", @hash=4103649980317762547>]
  • action_dispatch.request.content_type : application/x-www-form-urlencoded
  • action_dispatch.request.formats : [#<Mime::Type:0x007fb8b08d2708 @synonyms=[], @symbol=nil, @string="/", @hash=4103649980317762547>]
  • action_dispatch.request.parameters : {"issue_template"=>"1", "template_type"=>"global", "is_triggered_by_status"=>"false", "controller"=>"issue_templates", "project_id"=>"10", "action"=>"load"}
  • action_dispatch.request.path_parameters : {:controller=>"issue_templates", :project_id=>"10", :action=>"load"}
  • action_dispatch.request.query_parameters : {"is_triggered_by_status"=>"false"}
  • action_dispatch.request.request_parameters : {"issue_template"=>"1", "template_type"=>"global"}
  • action_dispatch.request.unsigned_session_cookie: {"session_id"=>"6d78f6e25bf633349961315313f7b92f", "user_id"=>8, "tk"=>"f57f69f7419af208a5fe484464a73688ee6c3cf4", "sudo_timestamp"=>1473041388, "_csrf_token"=>"eNZEynNjtNO5Vo81cg6tPF0jgigzpUZsezkP1rrhbVQ=", "recent_projects"=>[10, 2], "query"=>{:project_id=>2, :filters=>{"status_id"=>{:operator=>"o", :values=>[""]}}, :group_by=>nil, :column_names=>nil, :totalable_names=>[:estimated_hours, :spent_hours]}, "issues_index_sort"=>"id:desc"}
  • action_dispatch.request_id : 43cba62d-f407-4426-876f-ea788028da9f
  • action_dispatch.routes : #ActionDispatch::Routing::RouteSet:0x00000005e1e2b8
  • action_dispatch.secret_key_base : 59dda17a42803617f96151518b9aeecb94e132c6f140123f1982e1c8ae15d0103ffa854c4d8b0019
  • action_dispatch.secret_token :
  • action_dispatch.show_detailed_exceptions : false
  • action_dispatch.show_exceptions : true
  • action_dispatch.signed_cookie_salt : signed cookie
  • async.callback : #<Method: Thin::Connection#post_process>
  • async.close : #EventMachine::DefaultDeferrable:0x007fb8b08df1d8
  • rack.errors : #IO:0x0000000143d590
  • rack.input : #StringIO:0x007fb8b08dfe08
  • rack.multiprocess : false
  • rack.multithread : true
  • rack.request.cookie_hash : {"autologin"=>"df95bc5acf08ba7db8767eb2c92997aaf2089912", "_redmine_session"=>"R3Fuc09MWGUzTDVTNFA2MnBxcml4Tk9ZNHhMNXIxRmtEb3ZkaU1jb0I5b2ttazM5ODU3OFdKS1RFOFdMY1QzaTBOUGl4SkZianVTb1RwMEFZUmlkdDBWVTZDTS9iTGtQcDMxb1Z6amQ1d3B6TmlDWEV5M1NCL0Y4aGlUTnZCRkp5V2tKK1dmTVhaYzFIc1EvZThRQXhReFZ1bVRFdVZWZ2I2U0xIVFhHSUdvMThNUGxTdCtpYmxNMHk3eUt4SDRrWHRqNkpDL2h5OWdiSFMyaDAwK0pzWWh4MXlEYnAyb1Fqb0ZPeURqejRFVnNUMW9uajVlK3ptMjk1T25TUEtGNzFvWmZoQ3dKU3lpVWJvWlJwUUE4Zkpqbm04U0x1YURIK2VZTzRWR3VnRVNKSDhpd3JQSG0zc1Q0cm5waGJRTHc3ZUxwZTJGL0RnY1VGaFhvQU02M2NjZ2svYU1WMitib01mYUpjajNEV1M0bHpGK3I0b3crR2UzZUNKRUNSNUNwL001NHJsUVQzb0VuVXlxdU9xOElaYWU3VnpIY2k5WVUwa0JyM2NxTVJiVEw5YzhSSFNpK3YzcHFBQWNHcjFJQ2doL3dYbmIxbEVNb0NkWkp6WEN4MDlTcmNRRFUxNnk2M0lDbVN6TmFsMFdjQzFPWXp4VmFtRXZDekU3THZ4QktOZkdCNThrbStmTlZRRG9IQkRHd3pyY3NuZUtBWHVUQndoUy9ZcFBlMnNkbTFZamJNNGVVQTdSWjBkUnpOakdBVzR2RjMxU3JYRXI1b3NvRG1rWjV3NkpHUldjdk9DRWFPT0JOazBIRFdhQT0tLWJsdjNhWmloNi9mNGwvQXJmWkpTYkE9PQ==--f5332117e89c078fdbc9762dfb78111e1199cad1"}
  • rack.request.cookie_string : autologin=df95bc5acf08ba7db8767eb2c92997aaf2089912; _redmine_session=R3Fuc09MWGUzTDVTNFA2MnBxcml4Tk9ZNHhMNXIxRmtEb3ZkaU1jb0I5b2ttazM5ODU3OFdKS1RFOFdMY1QzaTBOUGl4SkZianVTb1RwMEFZUmlkdDBWVTZDTS9iTGtQcDMxb1Z6amQ1d3B6TmlDWEV5M1NCL0Y4aGlUTnZCRkp5V2tKK1dmTVhaYzFIc1EvZThRQXhReFZ1bVRFdVZWZ2I2U0xIVFhHSUdvMThNUGxTdCtpYmxNMHk3eUt4SDRrWHRqNkpDL2h5OWdiSFMyaDAwK0pzWWh4MXlEYnAyb1Fqb0ZPeURqejRFVnNUMW9uajVlK3ptMjk1T25TUEtGNzFvWmZoQ3dKU3lpVWJvWlJwUUE4Zkpqbm04U0x1YURIK2VZTzRWR3VnRVNKSDhpd3JQSG0zc1Q0cm5waGJRTHc3ZUxwZTJGL0RnY1VGaFhvQU02M2NjZ2svYU1WMitib01mYUpjajNEV1M0bHpGK3I0b3crR2UzZUNKRUNSNUNwL001NHJsUVQzb0VuVXlxdU9xOElaYWU3VnpIY2k5WVUwa0JyM2NxTVJiVEw5YzhSSFNpK3YzcHFBQWNHcjFJQ2doL3dYbmIxbEVNb0NkWkp6WEN4MDlTcmNRRFUxNnk2M0lDbVN6TmFsMFdjQzFPWXp4VmFtRXZDekU3THZ4QktOZkdCNThrbStmTlZRRG9IQkRHd3pyY3NuZUtBWHVUQndoUy9ZcFBlMnNkbTFZamJNNGVVQTdSWjBkUnpOakdBVzR2RjMxU3JYRXI1b3NvRG1rWjV3NkpHUldjdk9DRWFPT0JOazBIRFdhQT0tLWJsdjNhWmloNi9mNGwvQXJmWkpTYkE9PQ%3D%3D--f5332117e89c078fdbc9762dfb78111e1199cad1
  • rack.request.form_hash : {"issue_template"=>"1", "template_type"=>"global"}
  • rack.request.form_input : #StringIO:0x007fb8b08dfe08
  • rack.request.form_vars : [FILTERED]
  • rack.request.query_hash : {"is_triggered_by_status"=>"false"}
  • rack.request.query_string : is_triggered_by_status=false
  • rack.run_once : false
  • rack.session : #ActionDispatch::Request::Session:0x007fb8b08dc258
  • rack.session.options : #ActionDispatch::Request::Session::Options:0x007fb8b08dc168
  • rack.url_scheme : http
  • rack.version : [1, 0]

Backtrace:

plugins/redmine_issue_templates/app/models/global_issue_template.rb:35:in checklist' plugins/redmine_issue_templates/app/models/global_issue_template.rb:41:intemplate_json'
plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb:114:in load' lib/redmine/sudo_mode.rb:63:insudo_mode'

Wrong column label in "Preview Template Contents" modal dialog

In the "Preview Template Contents" modal dialog there is the wrong label for the first column:

grafik

The issue template's name is Test, not the issue title:

grafik

So you should either add a new column in front of the first one and name it "template name" or you should not insert the "template name" in the "issue title" column.

チケットテンプレート作成時、日本語が入力できない

もとはBitBucketへの投稿でしたが、こちらに再掲します。


こんにちは。

チケットテンプレート作成時、日本語で項目を埋めて「作成」を押下するとInternal Errorに なります。ログを確認するとMysqlのエラーでIncorrect String Valueと出ています。

試に英文字だけでテンプレートを作成すると特にエラーは発生しません。

RedmineのVersionは3.3.0stableで、プラグインのVersionは0.1.1です。

何かわかることがあればコメントいただけると助かります。 よろしくお願いします。


Akiko.T リポジトリの所有者

こんにちは、こちらへのメッセージありがとうございます! 大変申しわけないのですが、現在マスターになるリポジトリをBitbucketからGitHubに移行しております。

日本語でかまいませんので、もしよろしければ、 https://github.com/akiko-pusu/redmine_issue_templates 側からダウンロードをお願いします。

最新版は v0.1.4 になりますが、こちらは間も無くバグフィックスのリリースをする予定です。 おそらく v0.1.3なら問題ないと思います。

https://github.com/akiko-pusu/redmine_issue_templates/releases

また、可能でしたらissueもGitHub側に寄せていただけると助かります。 ただ、アカウントをご用意いただくのが申し訳ないので、こちらでお受けするのでもいいのですが、ソースコードの最新はGitHub側になるので、回避策の提示などがちょっとやりにくいかもしれません。

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.