TracTicketMSTeamsDispatcherPlugin

44 views
Skip to first unread message

Markus Rosjat

unread,
Jan 15, 2023, 9:06:24 AM1/15/23
to trac-...@googlegroups.com
Hey list,

I noticed some people cloned my repo on github even though it's just a poc for myself. So i shamelessly write a little mail here to let you know i pushed another commit to https://github.com/rosjat/TracTicketMSTeamsDispatcherPlugin so you might get an idea of pushing a payload to teams and discord. There is still a lot of ugly things going on but maybe i got the time and energy to make it pretty and useful (hint: if someone likes to to JS i need some for the admin panel). So sorry for the spam ;)

Cheers 

Markus 

 
 

Markus Rosjat

unread,
Jan 17, 2023, 5:00:06 PM1/17/23
to trac-...@googlegroups.com
hey list,

it's me again ...

I made some small changes so we can add multiple web hooks. Also a way to delete a web hook in the admin page. I also added a discord payload (not really useful as long as you dont go pretty it up in the code). 
I will try to make some kind of release on pypi later this week so it could be installed with pip from there. 

I wanna stress again, its not really a ready to go full use but if someone likes to try it and report bugs or pretty ups for the admin page I will try to keep it going.

cheers

MArkus

RjOllos

unread,
Jan 18, 2023, 3:58:17 AM1/18/23
to Trac Users
Nice work!

One small suggestion. I guess from the name and settings that this allows publishing events into MS Teams, presumably notices like "Ticket #x created". It would be useful to have a concise description at the top of the README explaining everything the plugin does.

Markus Rosjat

unread,
Jan 18, 2023, 4:24:10 AM1/18/23
to trac-...@googlegroups.com
yeah as i said its a work in progress :) 

for now you can add a webhook to a teams or discord channel and in the ticket if you check a field it will send off a json payload to the webhooks. For now only on creation and change since this was a PoC but i guess i can extend this to a fully supported ticket action version.

the message for the teams looks like this 

image.png

for discord its just a testing payload atm 
image.png

if you got some hints on how to make the json payload usable for editing in the admin page that would be helpful. The payload is the most annoying part to implement in a way the user can customize it without going around monkey patching (at least for now)
regarding the README, yes I will do a more "explaining how it works" as soon as possible but i figured ppl who go through the pain of trying it out at this stage of development know there way around the trac stuff.

Cheers

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/c26929e4-24b6-4ecd-97ae-6db3a30dcc95n%40googlegroups.com.

Markus Rosjat

unread,
Jan 19, 2023, 11:48:24 AM1/19/23
to trac-...@googlegroups.com
hello again list,

so i did a little more work regarding the readme and the deployment to pypi. There is now a release for version 0.6.1dev that can be installed via pip. As the dev suggests its not really production ready since i need to do a little more work on the payloads and other todos

but to give it it a try it should be ok enough.

cheers

MArkus

figaro

unread,
Feb 2, 2023, 1:34:08 PM2/2/23
to Trac Users
Are you ok to add classifiers to your setup.py file? This is especially useful for PyPi. See for an example here:

Markus Rosjat

unread,
Feb 2, 2023, 4:02:22 PM2/2/23
to trac-...@googlegroups.com
Sure I don't mind, I simply never had a need to do so that's why I didn't add some at the moment. I can add some on the next commits. 

Cheers 

Markus

Markus Rosjat

unread,
Feb 12, 2023, 7:16:51 AM2/12/23
to trac-...@googlegroups.com
hi all,

i committed a new release of the plugin to github and pypi so if ppl like to check it out and hopefully open some issues if the find bugs it would be appreciated!

you will notice that a lot of things changed since v0.6.1 ... 

I added payload templates (not fully useful for now but i get there) and moved configuration for the webhooks and payloads in database tables. 
In my opinion the way i handle the database stuff isnt optimal but the lack of a better way to do it keeps me doing it this way for now. Also the javascript code is just ugly but since i am no frontend dev i take the 
simple approach to it.

Anyway if you check it out give me feedback pleae

cheers

Markus
Reply all
Reply to author
Forward
0 new messages