Hi,
Just wondering if there is a quick way to reference the ticket ID in a custom
email template?
I have edited the ticket_notify_email.txt file but whenever I try referencing
it (eg "$ticket.id" ) I just get an empty string.
I've looked at the notification.py file and perhaps the ticket ID isn't mapped
to the notification object? I don't know python so my edits just made things
worse...
I would like to add two links to the ticket - an internal address for users on
our corporate network and another for external users.
System Information
Trac: 0.11.7
Python: 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704
(Red Hat 4.1.2-46)]
setuptools: 0.6c11
SQLite: 3.3.6
pysqlite: 1.1.7
Genshi: 0.5.2dev-r1051
mod_python: 3.2.8
jQuery: 1.2.6
My ticket_notify_email.txt file is:
$ticket_body_hdr
$ticket_props
#choose ticket.new
#when True
$ticket.description
#end
#otherwise
#if changes_body
Changes (by $change.author):
$changes_body
#end
#if changes_descr
#if not changes_body and not change.comment and change.author
Description changed by $change.author:
#end
$changes_descr
--
#end
#if change.comment
Comment${not changes_body and '(by %s)' % change.author or ''}:
$change.comment
#end
#end
#end
--
Ticket URL: <$ticket.link>
Ticket URL (external): http://trac.externaldomain.com/project/ticket/$ticket.id
$project.name <${project.url or abs_href()}>
$project.descr
Luke.
--
Luke Durham | Switch Media
Level 20, Tower 2, 201 Sussex St, Sydney, NSW 2000 Australia
Tel: +61 2 8060 2219 | Fax: +61 2 9571 7130 | Mob: +61 403 813 842 |
[email protected]<mailto:[email protected]>
www.switchmedia.asia<http://www.switchmedia.asia>
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.