web services OTRS as requester

English! place to talk about development, programming and coding
Post Reply
MatjazBF
Znuny newbie
Posts: 21
Joined: 29 Oct 2013, 12:11
Znuny Version: 4.0.10
Real Name: Matjaz Batic Finzgar

web services OTRS as requester

Post by MatjazBF »

I have created webService in OTRS with OTRS acting as requester. I'm using testSimple example invoker. It has an invoker with event triggers for TicketStateUpdate and for TicketDynamicFieldUpdate_BTKtest. (Later I will add some more)

PROBLEM 1
The problem is that OTRS is sending SOAP request to outside system for all tickets that are moved. What I would like to do to is trigger SOAP request just for tickets that are moved into predefined queue.

PROBLEM 2
When closing the ticket the sent request contains only old ticket data and not the new values (so OTRS sends that ticket is in opened state)

Code: Select all

$VAR1 = {
  'OldTicketData' => {
    'Age' => '129604',
    'ArchiveFlag' => ........
......
'State' => 'In progress',
    'StateID' => '10',
    'StateType' => 'open',
PROBLEM 3
The other problem is that the SOAP request that OTRS sends to outside system contains only some of the Variables of the ticket not all. (Where can I define what variables are sent for triggered event?)

When changing the value BTKtest it contains only:

Code: Select all

$VAR1 = {
  'FieldName' => 'BTKTXT2',
  'TicketID' => '51125',
  'UserID' => '109',
  'Value' => 'aaaaa'
};
when closing the ticket the sent request contains almost all VARS but not the BTKTXT2

Any tips?

Thanks for your help.
MirecXP
Znuny newbie
Posts: 1
Joined: 15 Jan 2015, 16:30
Znuny Version: 3.3.9
Real Name: Miro

Re: web services OTRS as requester

Post by MirecXP »

Hi I have similar problems,
have you please resolved the issue #2 - how to send the new ticket data?
MatjazBF
Znuny newbie
Posts: 21
Joined: 29 Oct 2013, 12:11
Znuny Version: 4.0.10
Real Name: Matjaz Batic Finzgar

Re: web services OTRS as requester

Post by MatjazBF »

I haven't been able to solve this issues ... sorry, but if you come any closer to the solution please post back.
Post Reply