Opened 16 years ago
Closed 16 years ago
#7358 closed defect (worksforme)
[ticket-custom] and notifications of ticket-custom fields not working
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | notification | Version: | |
Severity: | normal | Keywords: | ticket custom notification fields |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
1:Create a [ticket-custom] inside trac.ini
[ticket-custom] product = select product.label = Product product.options = 1|2|3|4
2: Add the value $product to the ticket_subject_template inside the [notification] field inside trac.ini
ticket_subject_template = $product
expected result: email notifications should contain value of the '$product' from that bug inside it's subject field.
actual result: no email is send out at all. trac.log says "UndefinedError: "product" not defined"
Attachments (0)
Change History (5)
comment:1 by , 16 years ago
follow-up: 3 comment:2 by , 16 years ago
Try $ticket.product
. I would close this as 'worksforme', though perhaps it could be better documented which variables are available to the template.
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to anonymous:
Yes, the "$ticket.product" worked fine! =) Thank you for the support on this one. But as you say, increasing the documentation on this is a good idea.
Try
$ticket.product
. I would close this as 'worksforme', though perhaps it could be better documented which variables are available to the template.
comment:4 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:5 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
-How can I add custom-fields informations inside the email notificatons subject? -Is this possible at all?
/Magnus Z