Writing a text file to the Operating System on ticket Create

Moderator: crythias

Locked
ArielRivas
Znuny newbie
Posts: 11
Joined: 29 Sep 2013, 20:08
Znuny Version: 3.2.10
Real Name: Ariel Rivas-Micoud
Company: Softignition

Writing a text file to the Operating System on ticket Create

Post by ArielRivas »

Hi there:

Is there anyway to write a file to the operating system when a ticket is created?

That is, as opposed to the genericInterface sending a web Service, I would like to write a plain text file with data that was collected in the ticket.

Is this possible, and if so how?

Thank you,

Ariel
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Writing a text file to the Operating System on ticket Cr

Post by jojo »

this needs development
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ArielRivas
Znuny newbie
Posts: 11
Joined: 29 Sep 2013, 20:08
Znuny Version: 3.2.10
Real Name: Ariel Rivas-Micoud
Company: Softignition

Re: Writing a text file to the Operating System on ticket Cr

Post by ArielRivas »

Thanks Jojo:

I can develop the code to do it, just a question of knowing where to invoke such an action.

Any ideas?

Thanks,
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Writing a text file to the Operating System on ticket Cr

Post by jojo »

you'll need an event module for this (Kernel/System/Ticket/Event/)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ArielRivas
Znuny newbie
Posts: 11
Joined: 29 Sep 2013, 20:08
Znuny Version: 3.2.10
Real Name: Ariel Rivas-Micoud
Company: Softignition

Re: Writing a text file to the Operating System on ticket Cr

Post by ArielRivas »

Thanks Jojo, this is helpful.

So if I create a module and I assume that within the run procedure, I add something to the effect of

Code: Select all

 
if ( $Param{Event} eq 'TicketCreate' ) { 
#CODE TO WRITE TO A FILE
}


this will this be automatically triggered by the system once a ticket is created? or will it need additional configurations to invoke this?

Thanks,

Ariel
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Writing a text file to the Operating System on ticket Cr

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ArielRivas
Znuny newbie
Posts: 11
Joined: 29 Sep 2013, 20:08
Znuny Version: 3.2.10
Real Name: Ariel Rivas-Micoud
Company: Softignition

Re: Writing a text file to the Operating System on ticket Cr

Post by ArielRivas »

Thanks, that looks quite comprehensive.
Locked