Opened 5 years ago

Last modified 5 years ago

#11018 new defect

Modified field labels do not effect notification emails

Reported by: ngpitt@… Owned by: Ryan J Ollos
Priority: normal Component: BlackMagicTicketTweaksPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by Ryan J Ollos)

It is possible to get around this with a custom email template, but it'd be a nice feature. From creating a custom template, you might want to look into modifying the ticket_props object.

Here's my workaround:

{% with
   pv = [(a[0].strip(), a[1].strip()) for a in [b.split(':') for b in
         [c.strip() for c in
          ticket_props.replace('|', '\n').splitlines()[1:-1]] if ':' in b]];

   # Added this line
   pv = [('Category', p[1]) if p[0] == 'Component' else p for p in pv];

   sel = ['Reporter', 'Owner', 'Status', 'Category', 'Severity', 'Resolution'] %}\
${'\n'.join('%s\t%s' % (format(p[0]+':', ' <12'), p[1]) for p in pv if p[0] in sel)}
{% end %}\

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from obs to Ryan J Ollos

comment:2 Changed 5 years ago by Ryan J Ollos

See also #8145.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Ryan J Ollos.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.