Trigger event Dynamic field

Moderator: crythias

Locked
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Trigger event Dynamic field

Post by adminrd »

Hi,

I wanted to know if it's possible to have an event named "TicketDynamicFieldUpdate" ?

If yes, how can I configure it ?

Thanks in advance for your help,

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

Re: Trigger event Dynamic field

Post by crythias »

Yes, it's an event.

There's some older information here: viewtopic.php?f=60&t=10090

You'll want to react to TicketDynamicFieldUpdate_MyField (Browse Kernel/System/Event.pm)
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
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: Trigger event Dynamic field

Post by adminrd »

It works perfectly thanks
But
Now I wanted to keep the value of my dynamic field BEFORE the update. Is it possible ?

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

Re: Trigger event Dynamic field

Post by crythias »

It's possible that the old value might be in the ticket's history. Since we've already discussed two variables/DynamicFields, you can certainly reference the original when the second gets updated.

There is DynamicFieldValueObject->HistoricalValueGet

But I can't vouch for its validity for your purpose. There isn't any filter for the values you'll get.
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
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: Trigger event Dynamic field

Post by adminrd »

Now my problem is when I have multiple follow ups that arrived in the same ticket...
it is not possible using a postmaster filter to now the first follow up, second follow up value, etc.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Trigger event Dynamic field

Post by crythias »

What are you trying to do?
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: Trigger event Dynamic field

Post by crythias »

And .. you want an article dynamic field, not a ticket dynamic field.
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
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: Trigger event Dynamic field

Post by adminrd »

Yes, you're right, article dynamic field seems to be the appropriate response.

But I didn't succeed to get the article dynamic values in the search CSV. I have the column that appears in the CSV but it's blank.
And I configured the right thinks in Ticket::Frontend::AgentTicketSearch###SearchCSVDynamicField

So that's why I tried another way of having the values...

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

Re: Trigger event Dynamic field

Post by crythias »

You might need to enable Article Search.
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
Locked