Modify

Opened 12 months ago

Last modified 11 months ago

#11018 new defect

Modified field labels do not effect notification emails

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

Description (last modified by rjollos)

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 12 months ago by rjollos

  • Description modified (diff)
  • Owner changed from obs to rjollos

comment:2 Changed 11 months ago by rjollos

See also #8145.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.