Opened 11 years ago

Last modified 4 years ago

#11018 closed defect

Modified field labels do not effect notification emails — at Version 1

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 %}\

Change History (1)

comment:1 Changed 11 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from obs to Ryan J Ollos
Note: See TracTickets for help on using tickets.