﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
10844	Add a recipe for notifying the ticket's new owner	task		ejucovy	new	2013-01-30T15:00:25+01:00	2013-01-30T15:00:25+01:00	"The plugin's wiki documentation should include a ""Recipes"" section.

I should add a recipe for ""notifying a user when a ticket has been reassigned to her."""	ejucovy
10691	Remove frame hack for ticket_created	task		ejucovy	new	2012-12-10T05:17:12+01:00	2012-12-10T05:17:12+01:00	"Currently the plugin has to use a Python frame hack in the `ticket_created` method:

{{{
#!python
    def ticket_created(self, ticket):
        req = None

        for frame, __, ___, ____, _____, ______ in inspect.getouterframes(inspect.currentframe())[1:]:
            if 'req' in frame.f_locals:
                req = frame.f_locals['req']
                break
        if req is None:
            return

        self.apply_action_side_effects(req, ticket, '@created')
}}}

This is because Trac's `ITicketChangeListener.ticket_created` method does not receive a `request`, which we need to generate meaningful notifications.  (We need the request to find the change's author and comment, if any.)  But the method isn't sent a request because tickets may be created outside the context of an HTTP request.

It would be nice to be able to get rid of this frame hack -- either by figuring out another, more appropriate hook to plug in to, or by requesting a change in Trac's API here (perhaps `ticket_created(ticket, req=None)`; or perhaps by an extension to `ITicketActionController`)"	ejucovy
11278	Allow for email template files	enhancement	0.12	ejucovy	new	2013-08-13T00:40:21+02:00	2017-10-06T17:52:27+02:00	"I would like to see the ability to specify template files for .body similar to this:

notify_reporter_accepted.body = Template[notify_reporter_accepted.txt]"	anonymous
11498	Provide hints in render_ticket_action_control	enhancement		ejucovy	accepted	2014-01-12T15:40:46+01:00	2014-08-16T15:20:25+02:00	"WorkflowNotificationPlugin currently does nothing in render_ticket_action_control, since it doesn't itself provide any workflow actions.

However, it should return `None, None, hints` instead of `None, None, None` as it currently does.

The hints would inform the user about the email(s) that will be triggered.  I'm thinking subject and recipients would be most appropriate, e.g.:

> [Next status will be closed.  The resolution will be set to ___.]  An email titled ""Your ticket has been closed"" will be sent to joe.  An email titled ""The ticket you are watching has been closed"" will be sent to bob and nancy.

Not sure if we would be able to do this with 100% accuracy in case of `.condition` properties.

Nice-to-have: hover over a hint sentence to preview the full email that will be sent."	ethan.jucovy@…
11621	${ticket.commenters} field to include all previous commenters as recipients	enhancement		ejucovy	accepted	2014-03-13T20:46:48+01:00	2017-05-28T16:19:09+02:00	"For our internal helpdesk at work, we have staffers interact with a HelpDesk trac instance, but a lot of our correspondence happens via email threads. We'd like to make sure that staffers who comment on the ticket are automatically added to that email thread, so a `${ticket.commenters}` feature would be helpful.

I should note that because we also include `${tickets.cc}` this is basically the same, for us, as automatically adding someone to cc whenever they comment."	michael.snook@…
13547	Send All Ticket Updates in Email	enhancement	0.12	ejucovy	new	2019-03-28T14:17:43+01:00	2019-09-04T16:12:58+02:00	Is it possible that when a ticket comments are updates. That is not only sends the update, but the prior ticket updates/history.	jnzayas@…
11924	Erroneous text displayed in ticket action	defect	1.2	ejucovy	new	2014-08-15T16:30:57+02:00	2014-08-16T07:35:23+02:00	"I've implemented a workflow notification for resolution status = resolved and a condition of 'Signed'.  However, I noticed when attempting to resolve a request as 'Resolved', the following text will show next to the action (see attachment).

Text displayed next to resolve action in 'ticket modify'
{{{
An email titled ""Ticket 2197 has been signed"" will be sent to the following recipients: monica.chavez@bayer.com, yolander.dorsey@bayer.com, jared.bownds@bayer.com.
}}}


Trac.ini configuration
{{{
[ticket-workflow-notifications]
when_signed = resolve
when_signed.body = Ticket $ticket.id has been signed!  View it here: $link
when_signed.condition = ${ticket.resolution == 'Signed'}
when_signed.recipients = monica.chavez@bayer.com, yolander.dorsey@bayer.com, jared.bownds@bayer.com
when_signed.subject = Ticket $ticket.id has been signed
}}}


"	Jared
11231	Ticket creation email not sent when creating ticket using email2trac	defect		ejucovy	new	2013-07-19T12:42:42+02:00	2013-07-19T12:42:42+02:00	So now I use email2trac for creation of email. Strangely, I don't get any email about the new ticket. It works if I create the ticket from Trac UI. Also I did not see any log about the new ticket in the trac log file. Just a heads up. Not very important. I can probably use the notification in email2trac for new ticket.	anonymous
11865	Notification doesn't work with SVN integration ticket changes	defect	1.0	ejucovy	new	2014-07-08T10:42:17+02:00	2017-10-06T17:50:09+02:00	"Hello,

I have a TRAC installation (1.0) with status extended with ""testing"" value.
I have your great plugin (0.4). It works very well with modifications done by the TRAC web pages, but it doens't work correctly if I set a ticket to ""testing"" usign SVN integration.
{{{
Example: SVN commit with message ""my modification, test #1234""
}}}
This is my TRAC workflow setting:

{{{
[ticket-workflow]
accept = new,assigned,accepted,reopened -> accepted
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
leave = * -> *
leave.default = 1
leave.operations = leave_status
pass = testing -> closed
pass.name = success: solved
pass.operations = set_resolution
pass.set_resolution = fixed
reassign = new,assigned,accepted,reopened,testing,needs_work -> *
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reject = testing -> needs_work
reject.name = test failed
reopen = closed -> reopened
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = new,assigned,accepted,reopened -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY
testing = new,accepted,needs_work,assigned,reopened -> testing
testing.name = test
testing.permissions = TICKET_MODIFY
}}}

This is my WorkflowNotificationPlugin setting:

{{{
[ticket-workflow-notifications]
new_ticket = @created
new_ticket.body = ${ticket.reporter} has created the ticket #${ticket.id}: ""${ticket.summary}""\n\nDescription:\n\n${ticket.description}\n\nTicket URL: ${link}\n\n${project.name} <${project.url or abs_href()}>\n\n${project.descr}\n
new_ticket.recipients = r.signorelli
new_ticket.subject = [projects] NEW TICKET #${ticket.id}: ${ticket.summary}
when_fixed = resolve, pass
when_fixed.body = ${ticket.owner} has closed the ticket #${ticket.id}: ""${ticket.summary}""\nWith resolution: ${ticket.resolution}\n\nTicket URL: ${link}\n\n${project.name} <${project.url or abs_href()}>\n\n${project.descr}\n
when_fixed.recipients = r.signorelli
when_fixed.subject = [projects] CLOSED TICKET #${ticket.id}: ${ticket.summary}
when_testing = testing
when_testing.body = ${ticket.owner} is testing the ticket #${ticket.id}: ""${ticket.summary}""\n\nTicket URL: ${link}\n\n${project.name} <${project.url or abs_href()}>\n\n${project.descr}\n
when_testing.recipients = r.signorelli
when_testing.subject = [projects] TESTING TICKET #${ticket.id}: ${ticket.summary}
}}}

What do you think?

Thanks"	RomNexus6
13771	Error with trac 1.4.1	defect	1.4	ejucovy	new	2020-03-31T15:23:14+02:00	2020-04-05T19:45:20+02:00	"Dear,
Trac log contains the followings:

{{{
DEBUG: Loading plugin ""workflow_notification"" from ""/usr/local/lib/python2.7/dist-packages/trac_WorkflowNotificationPlugin-0.5-py2.7.egg""
2020-03-31 12:40:28,192 Trac[loader] ERROR: Skipping ""workflow_notification = workflow_notification"": ImportError: cannot import name NotifyEmail
}}}

when it loads. If enable the module, it stops trac. It was working 1.2.5.
Can you please advise.
Thanks
Laszlo Elbert"	laszlo.elbert@…
