Edgewall Software

Changes between Initial Version and Version 12 of Ticket #11949


Ignore:
Timestamp:
May 4, 2017, 11:21:50 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

With the following configuration and the proposed change, the email sender is the user that created the ticket:

[notification]
smtp_from_author = enabled
  • trac/ticket/web_ui.py

    diff --git a/trac/ticket/web_ui.py b/trac/ticket/web_ui.py
    index e1a9231ad..4e3d56794 100644
    a b class TicketModule(Component):  
    13891389
    13901390        # Notify
    13911391        event = TicketChangeEvent('created', ticket, ticket['time'],
    1392                                   ticket['reporter'])
     1392                                  req.authname)
    13931393        try:
    13941394            NotificationSystem(self.env).notify(event)
    13951395        except Exception as e:

Two other potential changes are:

  • Store the authname of the person that created the ticket by adding an author column to the ticket table.
  • Put some text in the template when reporter != creator, such as (Created by …), so that there is clear identification of the author when smtp_from_author = disabled.

Those changes are more extensive, but we can consider them in the future (documented in TracDev/ScratchPad/TicketModule).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11949

    • Property Status newassigned
    • Property Type defectenhancement
    • Property Milestone1.2.2
    • Property Owner set to Ryan J Ollos
  • Ticket #11949 – Release Notes

    initial v12  
     1The ticket author is used in the notification from field when `[notification]` `smtp_from_author = enabled`, rather than the ticket reporter. This changes the behavior for users with `TICKET_ADMIN`, since they are allowed to edit the //Reporter// field.