[SOLVED!] Generic Agent - Ticket Command

Moderator: crythias

Locked
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

[SOLVED!] Generic Agent - Ticket Command

Post by skullz »

Hi all..
Let say i have a php script that will export out closed ticket number to some file..
it will be execute via Generic Agent.
So, in Generic Agent Ticket Command, how do i get the ticket number?
what is ARG[0] ? i try it and it wont return any value..
thanks..

Image
Last edited by skullz on 05 Dec 2013, 07:05, edited 1 time in total.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: [Help] Generic Agent - Ticket Command

Post by jojo »

the arguments are passed to the command, you can not specify them in OTRS.

so your php script needs to use the first passed arguement as Ticketnumber
"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
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: [Help] Generic Agent - Ticket Command

Post by skullz »

thanks..i figure its out..

Image

Image
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
Locked