Enter Dynamic Values Using Generic Agent in OTRS

Moderator: crythias

Locked
zyousafi
Znuny newbie
Posts: 64
Joined: 09 Feb 2015, 12:03
Znuny Version: 4.0.5
Real Name: Zohair Yousafi

Enter Dynamic Values Using Generic Agent in OTRS

Post by zyousafi »

I want to enter the date and time the "Generic Agent" runs a particular task into a dynamic field that I have created. I have tried the following:

localtime()
"localtime()"
'localtime()'
$localtime()
$time{"localtime()"}
/"localtime()"/

The "Generic Agent" is entering the aforementioned values exactly as they appear. The system is not recognizing these commands and showing dynamic values. How can I go about doing this?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Enter Dynamic Values Using Generic Agent in OTRS

Post by crythias »

Every action that happens to a ticket in OTRS has a timestamp associated with it (in ticket_history).
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
zyousafi
Znuny newbie
Posts: 64
Joined: 09 Feb 2015, 12:03
Znuny Version: 4.0.5
Real Name: Zohair Yousafi

Re: Enter Dynamic Values Using Generic Agent in OTRS

Post by zyousafi »

Yes I am aware of that but I can't pull any data from the "ticket_history" table using the "Statistics" module. How can that information readily be available? The actual use case is I want to count how many times a ticket was reopened after it was closed. There was no straightforward way to do this so what I ended up doing was building a logic based on time and I found myself needing that information to do this.
Locked