On create ticket do

Hello all,

I'm trying to cleanly modify rt-3.8.8 to get call a Web-Services on  

ticket creation. I’ve tried with scrip but it doesn’t seem to be done
for that. I’ve also look for callback, but I can only find
beforeCreate (and no afterCreate or onCreate) . I’ve also tried to
create my own callback, but I don’t see where to place it in the code.
Can someone indicate me some solution to call a webeservice on or just
after ticket creation ?

Best regards,

eos

Hello all,

I’m trying to cleanly modify rt-3.8.8 to get call a Web-Services on
ticket creation. I’ve tried with scrip but it doesn’t seem to be done
for that.

Why? Of course, it depends of WS call purpose, but it is very common to
use scrips for this.

If you really need to do this with callback, thye one you are looking
for should be “BeforeDisplay” in Ticket/Display.html (ticket effective
creation is done here). Check that “$ARGS{‘id’}” eq ‘new’ to execute
only on ticket creation, not on each ticket display.

please ton reply to me, use the list so other users may have benefit of
this or can help you.

If there is a way to do it with scrip, I’d be glad to know it. I thought
scrip could only send mail.

scrip is just mean as exexute some perl code on certain conditions. Look
at http://wiki.bestpractical.com/view/Contributions to get some
examples.

Another thing I didn’t find in scrip is how to add it inside an
extension(to make it appear in drop down menu for example).

here you are right, scrips is not done to change the UI.

maybe you should tell us more about your needs to get better help :wink: