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
Writing a text file to the Operating System on ticket Create
Moderator: crythias
-
- 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
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
Thanks Jojo:
I can develop the code to do it, just a question of knowing where to invoke such an action.
Any ideas?
Thanks,
I can develop the code to do it, just a question of knowing where to invoke such an action.
Any ideas?
Thanks,
Re: Writing a text file to the Operating System on ticket Cr
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
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
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
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
-
- 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
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
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
-
- 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
Thanks, that looks quite comprehensive.