Modify

Opened 12 years ago

Closed 5 years ago

#11018 closed defect (wontfix)

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 (3)

comment:1 Changed 12 years ago by Ryan J Ollos

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

comment:2 Changed 12 years ago by Ryan J Ollos

See also #8145.

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

This plugin is deprecated in Trac 1.4 and later. See migration tips on BlackMagicTicketTweaksPlugin page.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.