プロジェクト

全般

プロフィール

QA #813

未完了

Redmineからのメール通知をカスタマイズしたい

奈良 裕記 さんがほぼ6年前に追加. ほぼ3年前に更新.

ステータス:
新規
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2018/05/30
期日:
進捗率:

0%

予定工数:

説明

■現象/要望

Redmineからのメール通知をカスタマイズしたい
PJ/Tracker/人、、同じ内容が適切な訳も無く

本家vote countでも、メール送信関連大量にありました。

■解決策

調査中。。

■対応状況

■補足


関連するチケット 1 (1件未完了0件完了)

関連している Unofficial Redmine Cooking - QA #996: 「関連するチケット」の追加/削除のメール通知が出ないようにしたい回答済楠川 智久2019/07/24

操作

奈良 裕記 さんがほぼ6年前に更新

本家に下記何でもチケットあり。
もちろん解決していないが、道標にはなるのでメモ

Advanced notification: per user, per project configurable schedule, event filter and notification format
http://www.redmine.org/issues/8241

Related to Redmine - Feature #11894: Configurable emission email address New
Related to Redmine - Feature #11619: Ability To Have Redmine Issue Update Notifications Send F... New
Related to Redmine - Defect #8406: Missing notification "Only for things I watch or I'm assi... New 2011-05-19
Related to Redmine - Feature #8675: Notify author only onclosed/resolved issue New 2011-06-23
Related to Redmine - Feature #415: Daily Digest option for Mail Notifications New
Related to Redmine - Feature #8409: single email for bulk updates New 2011-05-20
Related to Redmine - Feature #7349: Per-project email notification settings New 2011-01-17
Related to Redmine - Feature #2549: Enable the watching of news Closed 2009-01-20
Related to Redmine - Feature #8382: Notify on issue completion only New 2011-05-17
Related to Redmine - Feature #8374: Email Notifications on Spent Time New 2011-05-14
Related to Redmine - Feature #3069: Relative schedules, roles -> users New 2009-03-28
Related to Redmine - Feature #23565: As a project admin I need to be able to set notification ... New
Duplicated by Redmine - Feature #8331: Email notifications settings for persons per project Closed 2011-05-10
Duplicated by Redmine - Feature #11996: Module based Email Notification settings Closed
Duplicated by Redmine - Defect #8268: Receiving mail notification per specific status Closed 2011-05-03
Duplicated by Redmine - Feature #3857: Advanced E-mail Notifications Closed 2009-09-13

奈良 裕記 さんがほぼ6年前に更新

本家Plugin,チケットを見たが、あまり良さそうなの無し

redmine plugin mail githubで検索し、参考になりそうなものをメモ

メール用のプロジェクト名称を設定できるプラグイン
https://github.com/matsukei/redmine_custom_notification

https://github.com/team888/redmine-issue_mail_with_attachments-plugin
Send issue notification mail with file attachments
メールタイトル設定などのカスタマイズ可能

https://github.com/taqueci/redmine_mail_from
From変更

https://github.com/Restream/notify_custom_users
Email Notifications for Custom field with User type
This plugin automatically sends email notifications to users specified in the Custom field of the User format.

Akayagi
https://github.com/zaneli/akayagi
Redmine plugin for mail settings
Settings per project

Redmine Email Notification Content Filter Plugin
https://github.com/keeps/redmine_email_notification_content_filter
Redmine Email Notification Content Filter plugin allows to remove the description in the notification emails

Restream/redmine_reminder
https://github.com/Restream/redmine_reminder
This plugin sends email notifications about due dates of issues you are involved in (as Assignee, Author, Watcher, or User selected in the custom field).
Reminder options

https://github.com/ilyagory/redmine_project_specific_email_sender

tama ryo さんが5年以上前に更新

RedmineVersion:3.4.3.stable.17022
Ruby version:2.4.2-p198

もし、ご存知の方がいらっしゃれば教えてほしいのですが、
通知メールの件名を変更したいと思い
/var/lib/redmine/app/models/mailer.rb
のファイルの新規チケットの通知件名と変更時の通知件名の部分を下記に変更したところ
ウォッチャーに届く変更時の通知件名が下記の設定の最後にチケットタイトルが付いてしまい、二重にチケットタイトルが表示されることになってしまいました。
ウォッチャー宛のメール通知の件名部分を決めている箇所はどこか別にあるのでしょうか。
(メール件名を見ると78行目辺りのsubjectにどこかで追加しているように見えのですが。)

  • 新規チケット起票時のタイトル
    [{チケットNo.}] ({ステータス}) {題名} [{プロジェクト名} - {トラッカー名}]
    56行目
    :subject => "[##{issue.id}] (#{issue.status.name}) #{issue.subject} [#{issue.project.name} - #{issue.tracker.name}]" 
    
  • 変更時のタイトル
    [{チケットNo.}] ({ステータス}) {題名} [{プロジェクト名} - {トラッカー名}]
    78行目辺り
    s = "[##{issue.id}] " 
    s << "(#{issue.status.name}) #{issue.subject} [#{issue.project.name} - #{issue.tracker.name}]" 
    

奈良 裕記 さんが5年以上前に更新

models/mailer.rb眺めた限りでは問題無さそうに思えますが。。

s << issue.subject が残っているとか、
issue.subjectとmailのsubjectがごちゃになっている事は無いですよね。

メール題名上のissue.subjectをpj,trackerより前に移動したいのは理解できます。

tama ryo さんが5年以上前に更新

奈良様

s << issue.subject が残っているとか

原因はこれのようです。
こちらを削除し、試してみたいと思います。

(検証環境では削除していたのに本番で削除していなかったという。)

ありがとうございました!

奈良 裕記 さんがほぼ5年前に更新

  • 関連している QA #996: 「関連するチケット」の追加/削除のメール通知が出ないようにしたい を追加

奈良 裕記 さんが4年以上前に更新

奈良 裕記 さんが4年以上前に更新

奈良 裕記 さんがほぼ3年前に更新

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