Mailing List Archive

ticket notification based on variable value
I have had a request from a user if they could be notified when a new
ticket is created, and a variable has a certain value. We organize our
work by groups, and it is the 'group' variable that should be
considered. The variable is one we have added.

I have been thinking that I could make a notification rule for each
group, and people could add those to their notifications. I do not
want any complex logic tracking which people are in which group.

Is there a useful tutorial on doing such a thing? I recall looking at
the Trac notification system and feeling an bit over my head. I did
not know to what some things were referring. I am a programmer, but
I'm not versed in Trac internals. But I'm up for learning. So any
pointers/suggestions are welcome!

--
Roger Oberholtzer

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CANkOqwMq8%2B3AcMOi%2BmPBOJWFO6VQUFtdPiVbytscs8Xtsa1poA%40mail.gmail.com.
Re: ticket notification based on variable value [ In reply to ]
On 2/14/2023 2:14 AM, Roger Oberholtzer wrote:
> I recall looking at
> the Trac notification system and feeling an bit over my head. I did
> not know to what some things were referring. I am a programmer, but
> I'm not versed in Trac internals. But I'm up for learning. So any
> pointers/suggestions are welcome!


I updated the ticket reminder plugin last year.  It may not be the
closest plugin as an example for you, but it's one I can point you to
right now ...

https://github.com/manumitted/trac-ticketreminder

- Dan

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/1d8ad88b-a166-e161-753f-fc1b486952fe%40digidescorp.com.
Re: ticket notification based on variable value [ In reply to ]
On Tuesday, February 14, 2023 at 12:14:34 AM UTC-8 Roger Oberholtzer wrote:
I have had a request from a user if they could be notified when a new
ticket is created, and a variable has a certain value. We organize our
work by groups, and it is the 'group' variable that should be
considered. The variable is one we have added.

I have been thinking that I could make a notification rule for each
group, and people could add those to their notifications. I do not
want any complex logic tracking which people are in which group.

Is there a useful tutorial on doing such a thing? I recall looking at
the Trac notification system and feeling an bit over my head. I did
not know to what some things were referring. I am a programmer, but
I'm not versed in Trac internals. But I'm up for learning. So any
pointers/suggestions are welcome!

--
Roger Oberholtzer

This example appears to be similar to what you describe:
https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.notification.api.INotificationSubscriber#Examples

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/b5c300b9-d6f7-4774-b25a-e2e1d8158b95n%40googlegroups.com.