So I used http://www.iniy.org/?p=20&lang=en as a guide.
My current setup
- PC <------------------> OTRS Server
OS: win 7 OS: win server 2003
ActivePerl-5.12.3.1204 otrs-3.0.7
with SOAP::Lite
installed
I fallowed the steps from iniy.org
1- Login into your existing OTRS Installation as Admin
2- in the Menu under “Admin”->”Sysconfig” set Group to “Framework” and click “show”
3- In the list of subgroups click “Core::SOAP”
4- Check the boxes for SOAP::User: and SOAP::Password: and enter the values you like
5- click update
Then from the PC I run:
Code: Select all
use SOAP::Lite('autodispatch', proxy => 'http://myotrsserverip/otrs/rpc.pl');
my $User = 'some_user';
my $Pw = 'some_pass';
my $RPC = Core->new();
# create a new ticket number
my $TicketNumber = $RPC->Dispatch($User, $Pw, 'TicketObject','TicketCreateNumber');
print "RPC: New Ticketnumer created: ".$TicketNumber."\n";
my $TicketId = $RPC->Dispatch($User, $Pw, 'TicketObject', 'TicketCreate',
TN => $TicketNumber,
Title => 'Test Ticket',
Queue => 'Raw', # or QueueID => 123,
Lock => 'unlock',
PriorityID => 2, # or PriorityID => 2,
State => 'open', # or StateID => 5,
CustomerUser => 'mmartin', # customer at example.com
OwnerID => 1, # new owner
ResponsibleID => 1, # new responsible
UserID => 1,
);
print "RPC: New Ticket id is: $TicketId\n";
my $ArticleID =$RPC->Dispatch($User, $Pw, 'TicketObject', 'ArticleSend',
TicketID => $TicketId,
ArticleType => 'email-external', # email-external|email-internal|phone|fax|...
SenderType => 'agent', # agent|system|customer
From => 'root', # not required but useful
To => 'customer', # not required but useful
Cc => '', # not required but useful
ReplyTo => '', # not required
Subject => 'Test Ticket', # required
Body => "Test Body", # required
MessageID => '', # not required but useful
Charset => 'ISO-8859-15',
HistoryType => 'EmailCustomer', # EmailCustomer|Move|AddNote|PriorityUpdate|WebRequestCustomer|...
HistoryComment => 'Some free text!',
UserID => 1,
NoAgentNotify => 0, # if you don't want to send agent notifications
Type => 'text/plain',
Loop => 0, # auto reject|auto follow up|auto follow up|auto remove
);
Code: Select all
$("#FixedTable tbody tr.Active").offset() is null
(?)([object Object])@http://localhost/otrs-web/js/js-cache/ModuleJS_d4dadc7d727479f12302f928ec003e30.js:97
(?)()@http://localhost/otrs/index.pl?Action=AgentTicketZoom;TicketID=14:571
Ready((function (j, s) {return new b.fn.init(j, s);}))@http://localhost/otrs-web/js/js-cache/CommonJS_135c8f5270a616743e81ff0eaeec77a0.js:580
trigger()@http://localhost/otrs-web/js/js-cache/CommonJS_135c8f5270a616743e81ff0eaeec77a0.js:37
trigger([object Event])@http://localhost/otrs-web/js/js-cache/CommonJS_135c8f5270a616743e81ff0eaeec77a0.js:37