プロジェクト

全般

プロフィール

Vote #75858

未完了

Issue reference when receiving emails

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
29
version_id:
0
issue_org_id:
18668
author_id:
18869
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

When using a issue reference like @[Issue #455]@ and configuring redmine to receive emails by polling a IMAP/POP3 account, the referenced ticket gets updated correctly.

Using this feature between companies which use the same scheme fails however as the parser will only extract the first number from subjects like "Re: [Issue #12333212] [Ticket #55893] Bandwidth limit", which will assign the content of the email to either the wrong issue or simply fail (when the issue does not exist).

The regexp for extracting the issue number is currently the following:

ISSUE_REPLY_SUBJECT_RE = %r{\[(?:[^\]]*\s+)?#(\d+)\]}

h2. Improvement

We'd propose to add a custom tag to this matching scheme so each installation can reference tickets in a unique way like this:

  • "@Re: [ACME #88989] [JIRA #1231233312] Bandwidth limit@"
  • "@Re: [ACME #12932] Bandwith limit@"

The tag should be configurable in the admin interface or similar, the regexp could be something like

ISSUE_REPLY_SUBJECT_RE = %r{[(?:[]]*(?:${tag})\s?)?#(\d+)]}i
which would allow for "@Re: [ACME #88899]...@" and "@Re: [ACME#88899]...@"

Admin Redmine さんが約4年前に更新

  • カテゴリEmail receiving_29 にセット

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

いいね!0
いいね!0