プロジェクト

全般

プロフィール

Vote #66291

未完了

Allow setting of custom fields in redmine:email:receive_imap

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

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

0%

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

説明

Currently users can set values of custom fields upon issue creation via email (provided that the field is specified using the @allow_override@ option). However, as far as I can tell there is no way to assign a fixed value for a custom field in the options for the @rake@ command. You can do this for Redmine's built-in fields (ex. @priority=Low@).

It would be great to be able to do that, because it would allow me to set various email address that automatically classify issues based on where they were emailed without the user having to insert special lines in the body of the email (I know "Category" can be used for this, but I think many Redmine admins like me require several custom attributes to be set in addition).


journals

Hi Ian,
I have the same problem.
Did you find any solution?

There is a "similar problem posted in the forums":http://www.redmine.org/boards/2/topics/14226?r=23582 but as you can see, there is no answer.
--------------------------------------------------------------------------------
I also like to see this fixed. Specially for mandatory fields this is very useful to prevent the emails from being ignored without any further notice.
--------------------------------------------------------------------------------
I can add a required field directly to the code but it would be nice to be able to do this in a proper way.

<pre>
--- mail_handler.rb (revision 12902)
+++ mail_handler.rb (working copy)
@@ -50,7 +50,7 @@
# Use when receiving emails with rake tasks
def self.extract_options_from_env(env)
options = {:issue => {}}
- %w(project status tracker category priority).each do |option|
+ %w(project status tracker category priority due_date).each do |option|
options[:issue][option.to_sym] = env[option] if env[option]
end
%w(allow_override unknown_user no_permission_check no_account_notice default_group).each do |option|

</pre>
--------------------------------------------------------------------------------

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

  • カテゴリEmail receiving_29 にセット

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

いいね!0
いいね!0