Code Monkey home page Code Monkey logo

app-otrs-createticket's Introduction

NAME

App::OTRS::CreateTicket - create OTRS tickets via web services from the command line.

DESCRIPTION

This module contains one script, otrs.CreateTicket.pl, which allows you to create tickets in OTRS from the command line.

For creating a ticket you'll need to have valid OTRS agent login credentials, as well as the TicketConnector web service installed on your OTRS machine. In order to use the GenericTicketConnector you need to use at least OTRS 3.1.

Activating the TicketConnector is easy. Download the yml file from the following URL: https://raw.github.com/mbeijen/App-OTRS-CreateTicket/master/examples/GenericTicketConnector.yml

Then log in to OTRS as an administrator, navigate to Admin > Web Services, click "Add web service", click "Import web service" and then navigate to the file you just downloaded.

app-otrs-createticket's People

Contributors

mbeijen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-otrs-createticket's Issues

Charset error

Many thanks for your work and knowledge.
There are some errors with Russian characters in otrs.CreateTicket.pl
For example, if queue in OTRS named in Russian, otrs.CreateTicket.pl will not work.
If queue named in English, then ticket will be created, but OTRS create auto response in wrong charset:
default
I modified two lines in otrs.CreateTicket.pl, after that all fine, but I am not a programmer and don't know Perl and newer work with SOAP. Maybe you can do it better?
Modified line in "for my $Element (@TicketFields)" and "for my $Element (@ArticleFields)":
my $Param = SOAP::Data->type("string")->name( $Element => $Param{$Element} );

PROXY ERROR

This script over Proxy is error. Who can i set the Proxysetting ?

Internal server error non english characters

I just picked the App-OTRS-CreateTicket 1.16: https://github.com/mbeijen/App-OTRS-CreateTicket
Then I pulled in some data, and it worked fine, but when I passed non english characters I get Internal server error.

Details:

./bin/otrs.CreateTicket.pl --Server otrs4 --UserLogin root@localhost --Password ****** --Title 'SOAP teszt QUEUE' --CustomerUser sandor.dombora --Body 'Teszt ticket Bélától .... ' --Queue 'Raw' --Type Incident
./bin/otrs.CreateTicket.pl version 1.16

Content-Length header value was wrong, fixed at /usr/share/perl5/LWP/Protocol/http.pm line 189.

syntax error at line 1, column 49, byte 49 at /usr/lib64/perl5/XML/Parser.pm line 187

<title>500 Internal Server Error</title>

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/2.2.15 (CentOS) Server at otrs4 Port 80 at ./bin/otrs.CreateTicket.pl line 186

I did not find anything in log files.
OTRS version: 4.0.7, CentOS release 6.6 (Final)
Console charset set to UTF8: $LANG=hu_HU.UTF-8

The issue occures when I pass the "Bélától" word at the end of message and I also need hungarian characters in other fields too, which fails too.

Stop working after perl-SOAP-Lite upgrade

Many thanks for your work, very nice script.
After update from CentOS 6.8 to 6.9 otrs.CreateTicket.pl stop working with error:

Content-Length header value was wrong, fixed at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line

189, <> line 1.
Could not create ticket.

ErrorCode: TicketCreate.InvalidParameter
ErrorMessage: TicketCreate: Ticket->QueueID or Ticket->Queue parameter is invalid!

This error because /usr/share/perl5/vendor_perl/SOAP/Transport/HTTP.pm was updated with perl-SOAP-Lite-0.710.10-4.el6.noarch.rpm. Differences between old and new versions:

diff -r usr/share/perl5/vendor_perl/SOAP/Transport/HTTP.pm 
../4/usr/share/perl5/vendor_perl/SOAP/Transport/HTTP.pm
200,203c200,208
<             $envelope = pack( 'C0A*', $envelope )
<               if !$SOAP::Constants::DO_NOT_USE_LWP_LENGTH_HACK
<                   && length($envelope) != $bytelength;
<
---
>                       if ($] < 5.008) {
>                               $envelope = pack( 'C0A*', $envelope );
>                       }
>                       else {
>                               require Encode;
>                               $envelope = Encode::encode('UTF-8', $envelope);
>                       }
>             #  if !$SOAP::Constants::DO_NOT_USE_LWP_LENGTH_HACK
>             #      && length($envelope) != $bytelength;

Error only if use non-english symbols in Ticket->Queue.

mime attachment

Hi,
Is there a way to add MIME attachment to the ticket? Like through the email ticket creation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.