[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    Re: [Trac] Re: ITicketChangeListener usecase
From:       Markus Rosjat <markus.rosjat () gmail ! com>
Date:       2021-10-18 16:05:17
Message-ID: CAJ4osOk2Gi9pcFJ6S7ofk-8G9HR-+H-0XT0g6927F96nSgPe5Q () mail ! gmail ! com
[Download RAW message or body]

so here would be a very basic  proof of concept for code that sends a
notification to a teams channel.

https://gist.github.com/rosjat/e63dac514858c98f5ce22ee24c928f24

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

Am Do., 14. Okt. 2021 um 17:51 Uhr schrieb Markus Rosjat <
markus.rosjat@gmail.com>:

> Hi Ryan,
> 
> yeah the 2nd link seems to be the stuff that could help.
> 
> Thanks
> 
> MArkus
> 
> Am Mi., 13. Okt. 2021 um 23:32 Uhr schrieb RjOllos <rjollos@gmail.com>:
> 
> > 
> > 
> > On Wednesday, October 13, 2021 at 12:54:52 AM UTC-7 markus...@gmail.com
> > wrote:
> > 
> > > 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
> > > 
> > 
> > There are pages documenting ITicketManipulator and ITicketChangeListener:
> > 
> > https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
> >  
> > https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.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
> > 
> > --
> > 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/3344a4ce-dbc3-4e77-9f20-19dbc90a9a58n%40googlegroups.com
> >  <https://groups.google.com/d/msgid/trac-users/3344a4ce-dbc3-4e77-9f20-19dbc90a9a58n%40googlegroups.com?utm_medium=email&utm_source=footer>
> >                 
> > .
> > 
> 

-- 
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/CAJ4osOk2Gi9pcFJ6S7ofk-8G9HR-%2BH-0XT0g6927F96nSgPe5Q%40mail.gmail.com.



[Attachment #3 (text/html)]

<div dir="ltr"><div>so here would be a very basic   proof of concept for code that \
sends a notification to a teams channel.</div><div><br></div><div><a \
href="https://gist.github.com/rosjat/e63dac514858c98f5ce22ee24c928f24">https://gist.github.com/rosjat/e63dac514858c98f5ce22ee24c928f24</a></div><div><br></div><div>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 \
<br></div><div><br></div><div>cheers \
<br></div><div><br></div><div>Markus<br></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">Am Do., 14. Okt. 2021 um 17:51  Uhr schrieb Markus \
Rosjat &lt;<a href="mailto:markus.rosjat@gmail.com">markus.rosjat@gmail.com</a>&gt;:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ryan,<div><br></div><div>yeah \
the 2nd link seems to be the stuff that could help.  \
</div><div><br></div><div>Thanks</div><div><br></div><div>MArkus</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 13. Okt. 2021 um 23:32  \
Uhr schrieb RjOllos &lt;<a href="mailto:rjollos@gmail.com" \
target="_blank">rjollos@gmail.com</a>&gt;:<br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><br><br><div class="gmail_quote"><div dir="auto" \
class="gmail_attr">On Wednesday, October 13, 2021 at 12:54:52 AM UTC-7 <a \
href="mailto:markus...@gmail.com" target="_blank">markus...@gmail.com</a> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi \
Ryan,<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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  \
</div><div><br></div><div><br></div><div>cheers</div><div><br></div><div>MArkus  \
</div></div></blockquote><div><br></div><div>There are pages documenting \
ITicketManipulator and ITicketChangeListener:</div><div><a \
href="https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator" \
target="_blank">https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator</a></div><div><a \
href="https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketChangeListener" \
target="_blank">https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketChangeListener</a></div><div><br></div><div>The \
former is sometimes used when you need access to the request object, otherwise the \
latter is probably more straightforward for your use \
case.</div><div><br></div><div>Ryan  </div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br> To unsubscribe from this group and stop receiving emails from \
it, send an email to <a href="mailto:trac-users+unsubscribe@googlegroups.com" \
target="_blank">trac-users+unsubscribe@googlegroups.com</a>.<br> To view this \
discussion on the web visit <a \
href="https://groups.google.com/d/msgid/trac-users/3344a4ce-dbc3-4e77-9f20-19dbc90a9a58n%40googlegroups.com?utm_medium=email&amp;utm_source=footer" \
target="_blank">https://groups.google.com/d/msgid/trac-users/3344a4ce-dbc3-4e77-9f20-19dbc90a9a58n%40googlegroups.com</a>.<br>
 </blockquote></div>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To view this discussion on the web visit <a \
href="https://groups.google.com/d/msgid/trac-users/CAJ4osOk2Gi9pcFJ6S7ofk-8G9HR-%2BH-0 \
XT0g6927F96nSgPe5Q%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups \
.google.com/d/msgid/trac-users/CAJ4osOk2Gi9pcFJ6S7ofk-8G9HR-%2BH-0XT0g6927F96nSgPe5Q%40mail.gmail.com</a>.<br \
/>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic