Ticket Calendar Start Time: set value from Ticket Creation Time

Moderator: crythias

Locked
PiotrIr
Znuny newbie
Posts: 25
Joined: 02 Sep 2015, 17:37
Znuny Version: 4 Patch Level 11

Ticket Calendar Start Time: set value from Ticket Creation Time

Post by PiotrIr »

Hi,

I wold like to automatically assign dynamic field Ticket Calendar Start Time (if has no value) during creation from Ticket Creation Time. Is it possible?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by RStraub »

Add a generic agent job, or add the dynamic field to the screen and then via the template hide and prefill it.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
PiotrIr
Znuny newbie
Posts: 25
Joined: 02 Sep 2015, 17:37
Znuny Version: 4 Patch Level 11

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by PiotrIr »

Hi,

Thank you for your reply. I've looked at generic agent job but wasn't able to find a way to copy values between Ticket Creation Time to Ticket Calendar Start Time. I can set only statically Ticket Calendar Start Time.

Could you advise?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by RStraub »

Ah, you are right. GA does only accept fixed values.

Hum, well you could write a module for that... but why do you need a second field that holds the same value as creation time?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
PiotrIr
Znuny newbie
Posts: 25
Joined: 02 Sep 2015, 17:37
Znuny Version: 4 Patch Level 11

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by PiotrIr »

As in reports I will need to set sometimes different date then creation. As far as I know I cannot change creation time so idea is to use dynamic field and copy values from creation time, eventually change them manually later.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by crythias »

well, just as a FYI, and unless it matters, web based forms default to the current/now display time and date for dynamic fields, so the mere fact of selecting them/having them selected would be close enough (within the seconds of clicking submit) to the actual create time, that it could be used for something else when you need it.
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
PiotrIr
Znuny newbie
Posts: 25
Joined: 02 Sep 2015, 17:37
Znuny Version: 4 Patch Level 11

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by PiotrIr »

crythias,

Thank you for your reply. unfortunately I have to set the time when the ticked is logged using e-mail. Is i possible to read time now() somehow in Postmaster Filter?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by crythias »

For the above, you *might* be able to parse the header for a value to set.
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
PiotrIr
Znuny newbie
Posts: 25
Joined: 02 Sep 2015, 17:37
Znuny Version: 4 Patch Level 11

Re: Ticket Calendar Start Time: set value from Ticket Creation Time

Post by PiotrIr »

I've actually have done this. But my point is, if there is no time in body, it should be set automatically using now() or arrival time or whatever near now.
Locked