りんちゃんの日記

日常を書き留めていきます。

redmineのプラグインインストール

1. Clipboard image paste

www.redmine.org

 1.1. ディレクトリ移動
    # cd /var/lib/redmine/plugins

 1.2. サイトよりgit cloneする
    # git clone https://github.com/peclik/clipboard_image_paste.git

 1.3. 権限変更
    # chown -R apache.apache clipboard_image_paste

   1.4. マイグレーション
    # RAILS_ENV=production bundle exec rake redmine:plugins:migrate

   1.5. apache再起動
    # systemctl restart httpd

 


 2. customize plugin

github.com

 1.1. ディレクトリ移動
    # cd /var/lib/redmine/plugins

 1.2. サイトよりgit cloneする
   
# git clone https://github.com/onozaty/redmine-view-customize.git view_customize

 

 1.3. 権限変更
    # chown -R apache.apache view-customize

   1.4. マイグレーション
    # RAILS_ENV=production bundle exec rake redmine:plugins:migrate

   1.5. apache再起動
    # systemctl restart httpd

 

 

 


 3. Template


github.com

 1.1. ディレクトリ移動
    # cd /var/lib/redmine/plugins

 1.2. サイトよりgit cloneする
    # git clone https://github.com/akiko-pusu/redmine_issue_templates.git

 1.3. 権限変更
    # chown -R apache.apache redmine_issue_templates

   1.4. マイグレーション
    # RAILS_ENV=production bundle exec rake redmine:plugins:migrate

   1.5. apache再起動
    # systemctl restart httpd

 

 


 4. Redmine Edit Issue Author

www.redmine.org
github.com

 1.1. ディレクトリ移動
    # cd /var/lib/redmine/plugins

 1.2. サイトよりgit cloneする
    # git clone https://github.com/rgtk/redmine_editauthor.git

 1.3. 権限変更
    # chown -R apache.apache redmine_editauthor

   1.4. マイグレーション
    # RAILS_ENV=production bundle exec rake redmine:plugins:migrate

   1.5. apache再起動
    # systemctl restart httpd

 

 


 4. redmine_custom_js

github.com

 1.1. ディレクトリ移動
    # cd /var/lib/redmine/plugins

 1.2. サイトよりgit cloneする
    # git clone https://github.com/martin-denizet/redmine_custom_js.git

 1.3. 権限変更
    # chown -R apache.apache redmine_custom_js

   1.4. マイグレーション
    # RAILS_ENV=production bundle exec rake redmine:plugins:migrate

   1.5. apache再起動
    # systemctl restart httpd


5. redmine_export_with_journals

github.com
http://Redmine チケット一覧のCSV出力の履歴出力プラグインに更新時間を追加する

 

 1.1. ディレクトリ移動
    # cd /var/lib/redmine/plugins

 1.2. サイトよりgit cloneする
    # git clone https://github.com/suer/redmine_export_with_journals.git

 1.3. 権限変更
    # chown -R apache.apache redmine_export_with_journals

 1.4. 更新時間を追加
    
redmine_export_with_journals\app\helpers\issues_export_helper.rb
    10行目の頭に下記を追加(時間を更新する部分)
     '['+ j.created_on.strftime("%Y/%m/%d %H:%M:%S")+'] ' + "\n" +

下記のように履歴と時間の部分を「+」で結合する。
'['+ j.created_on.strftime("%Y/%m/%d %H:%M:%S")+'] ' + "\n" + j.user.name + "\n" + j.details.map {|d| show_detail(d, true)}.join("\n") + "\n" + (j.notes.nil? ? '' : j.notes)

   1.4. マイグレーション
    # RAILS_ENV=production bundle exec rake redmine:plugins:migrate

   1.5. apache再起動
    # systemctl restart httpd


プラグインの削除

# cd /var/lib/redmine
# bundle exec rake redmine:plugins:migrate NAME=redmine_plugin VERSION=0 RAILS_ENV=production
# rm -rf plugins/redmine_plugin