Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7358 closed defect (worksforme)

[ticket-custom] and notifications of ticket-custom fields not working

Reported by: magnus.zetterberg@… 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 magnus.zetterberg@…, 16 years ago

-How can I add custom-fields informations inside the email notificatons subject? -Is this possible at all?

/Magnus Z

comment:2 by anonymous, 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.

in reply to:  2 comment:3 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

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 anonymous, 16 years ago

Resolution: fixed
Status: closedreopened

comment:5 by Emmanuel Blot, 16 years ago

Resolution: worksforme
Status: reopenedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Emmanuel Blot to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.