Edgewall Software
Modify

Opened 10 years ago

Last modified 9 years ago

#11887 new enhancement

List Ticket Attachments in TracNotification

Reported by: anonymous Owned by:
Priority: normal Milestone: next-major-releases
Component: notification Version: 1.0-stable
Severity: normal Keywords: bitesized
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by anonymous)

I'd like to list the filenames and possibly URLs of a ticket's attachments in each notification email. I need to gain access to ticket attachments in the trac_notify_email.txt. I've been working on it for the past couple of days and am not sure if this is possible. Please excuse my limited experience working with Trac and Genshi.

Is this something that can be done currently? If not maybe it's worth adding as a feature? Thanks

Attachments (0)

Change History (5)

comment:1 by anonymous, 10 years ago

Description: modified (diff)

comment:2 by Peter Suter, 10 years ago

I don't think it's possible to access the information you want from trac_notify_email.txt currently. The available variables there don't seem to contain that data.

In Trac 1.1.3 it might be possible to write a INotificationFormatter that does what you want.

comment:3 by Garrett, 10 years ago

Thanks for your response, I'm surprised nobody has requested this yet. Would it be possible to attach a ticket's attachment data to the available variables within the trac_notify_email.txt template? Seems like it could be done using the trac.attachment module.

-G

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:4 by Peter Suter, 10 years ago

Milestone: next-major-releases

I think it should be possible to make that available, yes. And you are correct that the trac.attachment module would be used. (For example in [13602] it's used to show the list of attachments when deleting a wiki page.)

(#10438 was another discussion about available variables in notification templates.)

comment:5 by Ryan J Ollos, 9 years ago

Keywords: bitesized added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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