ITicketChangeListener usecase

42 views
Skip to first unread message

Markus Rosjat

unread,
Oct 13, 2021, 3:54:52 AM10/13/21
to trac-...@googlegroups.com
Hi Ryan,

i know i could browse through the code and tryto find a proper example but since you know the code base you might be able to point me to something much quicker.

What i wanna do is react one a action like creation of a ticket and fire of some infos in a payload in a  request to a rest api. So i would a simple pointer on how to hook into the  workflow after the ticket is created.

My idea os to send notifications to a teams channel when someone created a ticket, maybe later build something to accept it form there but for now simply get the ticket infos into teams 


cheers

MArkus 

Roger Oberholtzer

unread,
Oct 13, 2021, 5:35:01 AM10/13/21
to trac-...@googlegroups.com
This sounds interesting. Sending messages to a Teams group would
perhaps wake up some of our users..
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAJ4osOmX1VOJs2y7tcm%2BbrQX-DFCjE6Ovh1iSyHtCEbT9Xc0xw%40mail.gmail.com.



--
Roger Oberholtzer

Markus Rosjat

unread,
Oct 13, 2021, 6:10:35 AM10/13/21
to trac-...@googlegroups.com
Well the hard part is do provide  user interface in track to configure what to send. The actual delivery f the payload Idaho brainer after you configure the connector in teams. Posting a message in python with requests and a neon payload is a 3 liner 

Markus Rosjat

unread,
Oct 13, 2021, 6:13:46 AM10/13/21
to trac-...@googlegroups.com
Sorry for the autocorrect stuff in my previous message! 


Markus Rosjat <markus...@gmail.com> schrieb am Mi., 13. Okt. 2021, 12:10:
Well the hard part is do provide  user interface in track to configure what to send. The actual delivery f the payload

The delivery of the payload is a no brainer

 Idaho brainer after you configure the connector in teams. Posting a message in python with requests and a neon payload is a 3 liner 

Posting a json payload with requests is a 3 liner

RjOllos

unread,
Oct 13, 2021, 5:32:36 PM10/13/21
to Trac Users
There are pages documenting ITicketManipulator and ITicketChangeListener:

The former is sometimes used when you need access to the request object, otherwise the latter is probably more straightforward for your use case.

Ryan 

Markus Rosjat

unread,
Oct 14, 2021, 11:51:34 AM10/14/21
to trac-...@googlegroups.com
Hi Ryan,

yeah the 2nd link seems to be the stuff that could help. 

Thanks

MArkus

--
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+...@googlegroups.com.

Markus Rosjat

unread,
Oct 18, 2021, 12:05:33 PM10/18/21
to trac-...@googlegroups.com
so here would be a very basic  proof of concept for code that sends a notification to a teams channel.


as i said very basic, not really planned but as a  proof of concept more then enough i guess. There is no way to customize things since it just shows the idea

cheers

Markus

Markus Rosjat

unread,
Nov 6, 2021, 6:00:19 AM11/6/21
to trac-...@googlegroups.com
Hi there,

I just started to play around a little more and got some basics started here https://github.com/rosjat/TracTicketMSTeamsDispatcherPlugin
this is just to get me going with stuff and might never evolve to something useful but at least there is a repo and if someone is intersted in input or cooperation there is a place to start.

Cheers

Markus
Reply all
Reply to author
Forward
0 new messages