Search found 24 matches

by crynof
18 May 2020, 21:21
Forum: Developers
Topic: How to return or send Tiket Subject?
Replies: 7
Views: 3907

Re: How to return or send Tiket Subject?

you should already have an existing ticket to use the invoker. So why do you want to create a new Subject? It happens that I need to return the subject to be sent to another system as a new ticket notification. The problem occurs when trying to return the Title and NumberTicket in a single variable...
by crynof
18 May 2020, 19:44
Forum: Developers
Topic: How to return or send Tiket Subject?
Replies: 7
Views: 3907

Re: How to return or send Tiket Subject?

You would need to develop your own invoker using the internal PERL API. Or just use one of the existing (commercial) Invokers Exactly I tried with that without success, but don't know how to return this Subject. The method that appears here to build Subject I obtained from OTRS DOC, but unknown how...
by crynof
18 May 2020, 05:08
Forum: Developers
Topic: How to return or send Tiket Subject?
Replies: 7
Views: 3907

Re: How to return or send Tiket Subject?

Hi jojo!, i talking about webservice, send subject to other system through REST.

I tried to return the title and number ticket but I do not obtain at the same time to TicketObject data.

Cheers
by crynof
17 May 2020, 04:31
Forum: Developers
Topic: How to return or send Tiket Subject?
Replies: 7
Views: 3907

How to return or send Tiket Subject?

Hi Friends!
I need to send a ticket subject (Ticket#2020012872000131 — Test Ticket) to other system through generic agent as invoker.

I tried to made that without sucess.

Anyone can help me pls?.

Many thanks!
by crynof
14 May 2020, 20:30
Forum: Help
Topic: Set ticketObject variable to other independent variable?
Replies: 0
Views: 1494

Set ticketObject variable to other independent variable?

Hi!, I trying to obtain the title of a ticket as a variable to be sent through invoker. I have tried in various ways but nothing works. In prepareRequest method: my %Ticket = $TicketObject->TicketGet( TicketID => $Param{Data}->{TicketID}, Type => $Param{Data}->{Type}, TicketNumber => $Param{Data}->{...
by crynof
13 May 2020, 23:26
Forum: Developers
Topic: How to return some variables in only one variable (Invoker)
Replies: 3
Views: 2784

Re: How to return some variables in only one variable (Invoker)

Hi, i tried to return some variables apart from TicketID, but is not possible. package Kernel::GenericInterface::Invoker::Test::Test; #use strict; use warnings; use Kernel::System::Ticket; use Kernel::System::VariableCheck qw(IsString IsStringWithData); our $ObjectManagerDisabled = 1; sub new { my (...
by crynof
07 May 2020, 07:26
Forum: Developers
Topic: How to return some variables in only one variable (Invoker)
Replies: 3
Views: 2784

Re: How to return some variables in only one variable (Invoker)

I assumed you already got the ticket id ? in that case, you can access another ticket attributes by my $TicketObject = $Kernel::OM->Get('Kernel::System::Ticket'); # get ticket content my %Ticket = $TicketObject->TicketGet( TicketID => $TicketID, UserID => 1, DynamicFields => 0, Extended => 0, ); my...
by crynof
05 May 2020, 21:48
Forum: Help
Topic: Enable warning popup before submitting form?
Replies: 5
Views: 1552

Re: Enable warning popup before submitting form?

not soo clean way..direct javascript on CustomerTicketMessage.tt at submit button, enable onclick event. onclick="clicked(event)" at end of file, <script> function clicked(e) { var priority = document.getElementById("PriorityID"); var priority2 = priority.options[priority.select...
by crynof
05 May 2020, 20:22
Forum: Help
Topic: Enable warning popup before submitting form?
Replies: 5
Views: 1552

Re: Enable warning popup before submitting form?

Hey, You'll need to create a new JavaScript file for the customer interface and write a couple of lines. Let me know if you need more help. Best regards Emin Many thanks zzz :D , yes i need some help because i never implemented javascript in OTRS, and for this reason i dont know how to integrate wi...
by crynof
05 May 2020, 19:26
Forum: Help
Topic: Enable warning popup before submitting form?
Replies: 5
Views: 1552

Enable warning popup before submitting form?

Hi! Currently I have my customer form (customer.pl) working perfectly, but due to a new functionality that I implement I need to assign a validation when submitting the form. My form has the option to choose the priority enabled. The problem is that users choose priority number 5 for any reason, tha...
by crynof
04 May 2020, 08:24
Forum: Developers
Topic: How to return some variables in only one variable (Invoker)
Replies: 3
Views: 2784

How to return some variables in only one variable (Invoker)

Hi!, i trying to merge the content of some variables and then return them in only one variable. I want to send a ticket data to telegram chat, and i had half resolved, but i have one problem. The predefined URL that send data to telegram allow one variable only as text. https://api.telegram.org/bot<...
by crynof
30 Apr 2020, 17:47
Forum: Developers
Topic: Invoke error to send data
Replies: 6
Views: 3994

Re: Invoke error to send data

I think there's a part in the manual about how to setup OTRS with a Web Service as Requestor. So that based on trigger / actions, OTRS does something: OTRS as Requester: OTRS acts as a client collecting information, sending the request to the Remote System, and waiting for the response. From here: ...
by crynof
30 Apr 2020, 05:34
Forum: Developers
Topic: Invoke error to send data
Replies: 6
Views: 3994

Re: Invoke error to send data

Hey, usually I just lookup the Docs or copy from another module. In this case it would be: my $TicketObject = $Kernel::OM->Get('Kernel::System::Ticket'); Many Thanks RStraub, finally works. I was trying send data to Telegram chat, but i dont know how to config invoke on SOAP or REST. I need to send...
by crynof
28 Apr 2020, 22:47
Forum: Developers
Topic: Invoke error to send data
Replies: 6
Views: 3994

Re: Invoke error to send data

skullz wrote: 28 Apr 2020, 20:49 You didn't define $TicketObject at sub PrepareRequest
Many Thanks skullz, how can i do that?, exist any example?, I don't know perl.
Cheers
by crynof
27 Apr 2020, 05:56
Forum: Developers
Topic: Invoke error to send data
Replies: 6
Views: 3994

Invoke error to send data

Hello, I am trying to send information about a ticket to an external system. I have created a module to send that information based on Test.pm (Do not change the name to avoid complications). When making an event that triggers the sending of data, the console throws the following error. https://foto...
by crynof
13 Apr 2020, 06:51
Forum: Help
Topic: How to create a generic inteface?
Replies: 1
Views: 701

How to create a generic inteface?

Hi!, i searching how can i create a generic interface on OTRS. I read documentation but i seems that is not very clear, at least for me. I need to create a Invoker webservice to send data to other system, but i only found info about how to create a provider webservice and also not understand because...
by crynof
09 Apr 2020, 03:12
Forum: Developers
Topic: how can get ticket data with generic agent?
Replies: 5
Views: 3348

Re: how can get ticket data with generic agent?

Hey, attach the dumper-snippet to your "package Modulos::AlertaTicket;", tail the log files and run the generic agent. If it throws information in the log, the module is run and you should see some information from the variable you are dumping. If it does not show anything in the logs, th...
by crynof
06 Apr 2020, 03:54
Forum: Developers
Topic: how can get ticket data with generic agent?
Replies: 5
Views: 3348

Re: how can get ticket data with generic agent?

Hey, I think if you easily want to show it in the browser console, you'll need the "Fred" Addon from OTRS. But only use that on a test/dev system as it will kill the performance and you don't want to have it active for all users. What I use is this in the code: use Data::Dumper; $Kernel::...
by crynof
01 Apr 2020, 04:31
Forum: Developers
Topic: how can get ticket data with generic agent?
Replies: 5
Views: 3348

how can get ticket data with generic agent?

Hi!, i trying to return a ticket data through GenericAgent custom script without success. This is my code (have some fragments of code that i tried but nothing works xD): #!/usr/bin/perl # This module is triggered by a generic agent package Modulos::AlertaTicket; use strict; use warnings; use utf8; ...
by crynof
27 Mar 2020, 04:06
Forum: Help
Topic: How to send a ticket info to external system when ticket is created?
Replies: 8
Views: 2324

Re: How to send a ticket info to external system when ticket is created?

skullz wrote: 27 Mar 2020, 03:06 There is no exact example, but maybe you can start here..

viewtopic.php?f=62&t=41299
Many Thanks!!!, i´ll take a look. Any thing works for me.
:D
by crynof
27 Mar 2020, 01:23
Forum: Help
Topic: How to send a ticket info to external system when ticket is created?
Replies: 8
Views: 2324

Re: How to send a ticket info to external system when ticket is created?

You actually can do it by using Generic Agent and custom script module. But of course, you need to have a knowledge in programming. 1. Run generic agent upon even ticket create with high priority. 2. Execute custom module. Generic agent will pass the value of effected ticket (ticket id), use this t...
by crynof
24 Mar 2020, 20:17
Forum: Help
Topic: How to send a ticket info to external system when ticket is created?
Replies: 8
Views: 2324

Re: How to send a ticket info to external system when ticket is created?

you need to develop or buy an invoker package first. Then you can start configure it Thanks! Its possible to develope that without configure a webservice?. I mean to inject an Ajax code into the perl code that executes the creation of a ticket, so that when generating a ticket and this is of priori...
by crynof
23 Mar 2020, 03:01
Forum: Help
Topic: How to send a ticket info to external system when ticket is created?
Replies: 8
Views: 2324

Re: How to send a ticket info to external system when ticket is created?

you need to create a invoker module for the Generic Interface Many thanks!, i tried to configure a generic interface but i dont know how. I saw so documentation but i think that is no clear, because not explain the otrs process behind. What is the basic options that i should to set for a basic send...
by crynof
22 Mar 2020, 22:19
Forum: Help
Topic: How to send a ticket info to external system when ticket is created?
Replies: 8
Views: 2324

How to send a ticket info to external system when ticket is created?

Hi!, that is my first post. I am trying to implement telegram alerts with OTRS. My idea is for OTRS to send an alert to telegram when a customer creates a priority 5 ticket. At the moment I have the way to send alerts to telegram by POST method, but from the OTRS side I don't know how to implement t...