NAME
otrs.CreateTicket.pl - create tickets in OTRS via web services.
SYNOPSIS
Example 1: all arguments on the command line
otrs.CreateTicket.pl --Server otrs.example.com --Ssl --UserLogin myname \ --Password secretpass --Title 'The ticket title' \ --CustomerUser customerlogin --Body 'The ticket body' --DynamicField Branch="Sales UK" --DynamicField Source=Monitoring
Example 2: read body in from a file
otrs.CreateTicket.pl --Server otrs.example.com --Ssl --UserLogin myname \ --Password secretpass --Title 'The ticket title' \ --CustomerUser customerlogin --BodyFile description.txt
Example 3: read body in from STDIN
otrs.CreateTicket.pl --Server otrs.example.com --Ssl --UserLogin myname \ --Password secretpass --Title 'The ticket title' \ --CustomerUser customerlogin < description.txt
SYNTAX
otrs.CreateTicket.pl command syntax:
otrs.CreateTicket.pl [arguments]
Arguments:
SERVER CONNECTION
--Server Name of OTRS server.
--Ssl (boolean) If SSL (https) should be used.
Alternatively:
--Url Full URL to GenericTicket web service.
USER AUTHENTICATION
--UserLogin Login name of valid Agent account.
--Password Password for user.
TICKET DATA
--Title Title of ticket.
--CustomerUser Customer of ticket (mandatory!).
--Priority Defaults to '3 normal' if not specified.
--Queue Defaults to 'Postmaster' if not specified.
--Owner Optional.
--Responsible Optional, and only if activated on the server.
--Service Optional, and only if activated on the server.
--SLA Optional, and only if activated on the server.
--Type Optional, and only if activated on the server.
ARTICLE DATA
--Subject Optional, defaults to title if not defined.
--BodyFile Name of file that contains body text of the message
--Body Body text of the message.
--SenderType Optional, defaults to 'Customer'.
--ArticleType Optional, defaults to 'web-request'.
DYNAMIC FIELDS
--DynamicField Optional. Can be passed multiple times. Takes Name=Value pairs.