E-Mail update for "ticket closed fixed" only?

24 views
Skip to first unread message

W. Martin Borgert

unread,
Nov 9, 2012, 5:41:19 AM11/9/12
to trac-...@googlegroups.com
Hi,

I need an email to one recipient, only if a ticket gets closed
with resolution "fixed". Is this possible? I'm using 0.11.7,
but upgrade is planned.

Thanks in advance!

Steffen Hoffmann

unread,
Nov 9, 2012, 11:34:04 AM11/9/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09.11.2012 11:41, W. Martin Borgert wrote:
> Hi,
>
> I need an email to one recipient, only if a ticket gets closed
> with resolution "fixed". Is this possible? I'm using 0.11.7,
> but upgrade is planned.

No.

TracNotification, the infrastructure for ticket email notifications is
somewhat short of maintainers. And in general there's not much hope of
getting your requirements in there any time soon.

TracAnnouncer alias AnnouncerPlugin, a much more flexible framework for
arbitrary transports (email and xmpp - Jabber for the moment) already
has a more advanced subscription system and is the proposed successor to
TracNotification [3]. Until last month it shared the fate of
TracNotification, but some developers including me are working hard now
to make it ready for Trac-1.0, and more.

If you have time and resources your could certainly do a plugin on-top
of AnnouncerPlugin on your own, that just does what you want, and it
should work within a few hours.

But apart from that your best chance is an enhancement ticket against
AnnouncerPlugin and preferably providing more suggestions, how we could
make it a more versatile and generally interesting
TicketStatusSubscriber beyond your specific and rather narrow scope.

Steffen Hoffmann

[1] http://trac.edgewall.org/wiki/TracNotification
[2] http://trac-hacks.org/wiki/AnnouncerPlugin
[3] http://trac.edgewall.org/wiki/TracDev/Proposals/Announcer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCdMHcACgkQ31DJeiZFuHfL9gCdHdMZQyOFIZbPiPgoolx2HmQY
3uoAn2fyJiZMphiIoQzuM6fVLNgj/yJe
=0sZf
-----END PGP SIGNATURE-----

W. Martin Borgert

unread,
Nov 9, 2012, 12:50:44 PM11/9/12
to trac-...@googlegroups.com, Steffen Hoffmann
Quoting "Steffen Hoffmann" <hof...@web.de>:
> TracAnnouncer alias AnnouncerPlugin, a much more flexible framework for
> arbitrary transports (email and xmpp - Jabber for the moment) already

Jabber/XMPP is nice, indeed.

> But apart from that your best chance is an enhancement ticket against
> AnnouncerPlugin and preferably providing more suggestions, how we could
> make it a more versatile and generally interesting
> TicketStatusSubscriber beyond your specific and rather narrow scope.

Will do, thanks for the suggestion!

I remember that I tried AnnouncerPlugin, but remember that
Bitten did not work with it or something like that. The
"build failed" announcements are, however, important to us.

Cheers

Steffen Hoffmann

unread,
Nov 9, 2012, 2:43:06 PM11/9/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, Bitten notification will have to be fixed too, and I've reached
out for interested parties to join [1], because I can't do testing
myself. Maybe you'll want to follow-up there.

Steffen Hoffmann


[1] http://trac-hacks.org/ticket/8641
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCdXMYACgkQ31DJeiZFuHf17QCg2yO/h+bjK9wNoJnTETzSCXYM
06MAn2IN5229OglUnvNkc9oKtFWZtRP4
=zcVm
-----END PGP SIGNATURE-----

Ethan Jucovy

unread,
Dec 11, 2012, 9:58:41 PM12/11/12
to trac-...@googlegroups.com
On 09.11.2012 11:41, W. Martin Borgert wrote:
> I need an email to one recipient, only if a ticket gets closed
> with resolution "fixed". Is this possible? I'm using 0.11.7,
> but upgrade is planned.

FYI, I've just released a new standalone plugin,
WorkflowNotificationPlugin, that can be configured to accomplish this:
http://trac-hacks.org/wiki/WorkflowNotificationPlugin#ConditionalNotifications

It's independent of AnnouncerPlugin, and from what I understand of
AnnouncerPlugin it takes a pretty different approach -- but I'd be
interested in figuring out how it could be made compatible with (or
possibly merged into?) AnnouncerPlugin.

-Ethan

W. Martin Borgert

unread,
Dec 12, 2012, 7:24:53 AM12/12/12
to trac-...@googlegroups.com, Ethan Jucovy
Quoting "Ethan Jucovy" <ethan....@gmail.com>:
> FYI, I've just released a new standalone plugin,
> WorkflowNotificationPlugin, that can be configured to accomplish this:
> http://trac-hacks.org/wiki/WorkflowNotificationPlugin#ConditionalNotifications

Yes, many thanks! I saw your announcement and believe that this
is exactly what I need. Do you know by accident whether the
plugin works with 0.11.7?

Ethan Jucovy

unread,
Dec 12, 2012, 8:29:46 AM12/12/12
to W. Martin Borgert, trac-...@googlegroups.com
I just tested it on a 0.11.7 environment and made a new release 0.4
that seems to work with 0.11.7. I think the previous release actually
would have failed on 0.12 too.

http://pypi.python.org/pypi/trac-WorkflowNotificationPlugin/0.4
https://github.com/boldprogressives/trac-WorkflowNotificationPlugin/archive/0.4.tar.gz

https://trac-hacks.org/ticket/10702

-Ethan

RjOllos

unread,
Dec 12, 2012, 3:42:39 PM12/12/12
to trac-...@googlegroups.com
On Tuesday, December 11, 2012 6:58:41 PM UTC-8, Ethan Jucovy wrote:
[...]

It's independent of AnnouncerPlugin, and from what I understand of
AnnouncerPlugin it takes a pretty different approach -- but I'd be
interested in figuring out how it could be made compatible with (or
possibly merged into?) AnnouncerPlugin.

I haven't looked at your code yet, but I was also wondering whether it might be merged into Announcer. We started discussing similar features in #10622, and hasienda has been working on a prototype. I invite you to join in that discussion.

Steffen Hoffmann

unread,
Dec 12, 2012, 4:44:22 PM12/12/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, such possibilities instantly came up to my mind. I'd certainly like
to see a ticket subscriber capable of customization by some conditional
expressions. In fact I'm already working on a TracQuery-like subscriber
extension and will look at your code for further inspiration. Thanks for
sharing it anyway.

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlDI+rIACgkQ31DJeiZFuHfP8QCdF9kuArdgIGe7tmiTkfiZXVI1
++wAn2eOkq6+j/fN4Enn+mXTASQUhpqm
=Z0Hq
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages