プロジェクト

全般

プロフィール

Vote #80249

完了

Add additional mail headers for issue tracker

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
127
issue_org_id:
31910
author_id:
3782
assigned_to_id:
332
comments:
4
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

As-is, Redmine already sends mail headers for Project, Issue ID, Issue Author and Issue Assignee (plus Host and Site). I'd like additional headers for tracker and priority (e.g. @X-Redmine-Tracker@ and @X-Redmine-Priority@), such that I can set up rules in my mail client to treat Support or Defect tickets differently to features or other trackers, and similarly to treat Urgent or Immediate issues differently to lower-priority tasks.

We have service level agreements in place with some customers that require us to respond to their issues within a specific time, but it's easy to lose these tickets in the noise of other activity in the system.

For the time being I've been simply looking for the name of the tracker in the subject line but that's prone to false-positives, e.g. if the word "Support" exists elsewhere in the issue's own subject line.


journals

--------------------------------------------------------------------------------
The following change adds "X-Issue-Tracker" header field to notification emails.

<pre><code class="diff">
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index e13abacbd..ecfdee2a6 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -71,6 +71,7 @@ class Mailer < ActionMailer::Base
def issue_add(user, issue)
redmine_headers 'Project' => issue.project.identifier,
'Issue-Id' => issue.id,
+ 'Issue-Tracker' => issue.tracker.name,
'Issue-Author' => issue.author.login
redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
message_id issue
@@ -102,6 +103,7 @@ class Mailer < ActionMailer::Base
issue = journal.journalized
redmine_headers 'Project' => issue.project.identifier,
'Issue-Id' => issue.id,
+ 'Issue-Tracker' => issue.tracker.name,
'Issue-Author' => issue.author.login
redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
message_id journal
</code></pre>
--------------------------------------------------------------------------------
This is a patch to add X-Issue-Tracker field to the email header.

I think we should focus on the field for the issue tracker here because the field for the issue priority is discussed in #2746.
--------------------------------------------------------------------------------
Committed the patch. Thank you for suggesting this improvement.
--------------------------------------------------------------------------------


related_issues

relates,New,2746,Send out issue priority in the email notification header

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン4.1.0_127 にセット

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

いいね!0
いいね!0