プロジェクト

全般

プロフィール

task #229

完了

redmineカレンダーを外部アプリに連携したい

masaya_abe さんが9ヶ月前に追加. 9ヶ月前に更新.

ステータス:
却下
優先度:
通常
担当者:
開始日:
2024-06-18
期日:
2024-06-20
進捗率:

0%

予定工数:
3:00時間
作業時間:

説明

redmineカレンダーをgoogleカレンダーに連携してスマホで手軽に本日のタスクを把握できるようにしたい
https://github.com/buschmais/redmics
上記のpluginで対応できそう

masaya_abe さんが9ヶ月前に更新

  • 説明 を更新 (差分)
  • 期日2024-06-20 にセット
  • ステータス新規 から 却下 に変更
  • 担当者masaya_abe にセット
  • 開始日2024-06-21 から 2024-06-18 に変更
  • 予定工数3:00時間 にセット

プラグイン入れると何故か一切のページが表示できなくなった
色々調べるうちに認証関連のパッチが原因ぽいことが分かった
redmine_ics_export/app/controllers/application_controller_patches.rb
下記の様に修正して問題解決できた.

と思ったら,他のページで500番エラー吐いた.
管理>プラグイン>各プラグインの設定

色々深掘れば解決できそうな気もするが,撤退することにした.

module ApplicationControllerPatches
  module InstanceMethods
    def find_current_user
      result = super
      return result if result

      if params[:format] == 'ics' && params[:key] && request.get? && accept_rss_auth?
        return User.find_by_rss_key(params[:key])
      end

      nil # Ensure to return nil if no user is found
    end
  end

  def self.included(base)
    base.class_eval do
      prepend InstanceMethods
    end
  end
end

# Enable the patch
ApplicationController.send(:include, ApplicationControllerPatches)

他の形式にエクスポート: Atom PDF