Vote #81361
完了X-Redmine-Issue-Assignee email header field is empty when the assignee of an issue is a group
0%
説明
When I assign an issue to a group, the X-Redmine-Issue-Assignee: header in the notification mail is empty.
As is:
X-Redmine-Issue-Assignee:
Should be:
X-Redmine-Issue-Assignee: Group (A Team)
journals
--------------------------------------------------------------------------------
I reviewed the patch. LGTM.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I think the suggested format (@X-Redmine-Issue-Assignee: Group (A Team)@) is well considered.
* If the group name is simply set to X-Redmine-Issue-Assignee, it may conflict with a user’s login, but the proposed format avoids that problem
* The keyword "Group" never conflicts with a user's login because the first letter is uppercase
* If in the future we want to extend X-Redmine-Issue-Assignee to include the display name of the user, we can use the same format like "admin (Redmine Admin)"
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Updated the patch. I unified the same code written twice.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed the patch.
Now the value of X-Redmine-Issue-Assignee email header field is @"Group (#{issue.assigned_to.name})"@ (example: "Group (A Team)") if the assignee of an issue is a group.
Thank you for your contribution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,New,19939,New X-Redmine-Issue-Priority header, and modification of X-Redmine-Issue-Assignee