How to include Dropdown DF in email notifications

Moderator: crythias

Post Reply
irba
Znuny newbie
Posts: 26
Joined: 06 Mar 2013, 12:41
Znuny Version: 3.2.2
Real Name: Irini
Company: Albtelecom

How to include Dropdown DF in email notifications

Post by irba »

Hi,

I want to include the value set to dropdown dynamic field, in email notifications.
I've tried <OTRS_TICKET_DynamicField_DFName> but it isn't working.
Can anybody suggest me what to do?

Thnx,
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: How to include Dropdown DF in email notifications

Post by RStraub »

From the notification page it reads:

Code: Select all

<OTRS_TICKET_DynamicField_*_Value>
Options of ticket dynamic fields display values, useful for Dropdown and Multiselect fields ( e. g. <OTRS_TICKET_DynamicField_TestField_Value>, <OTRS_TICKET_DynamicField_TicketFreeText1_Value>).
So it appears you have to append "_Value" to your tag.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
irba
Znuny newbie
Posts: 26
Joined: 06 Mar 2013, 12:41
Znuny Version: 3.2.2
Real Name: Irini
Company: Albtelecom

Re: How to include Dropdown DF in email notifications

Post by irba »

Hi & thnx for the reply,

I've tried that also. Let me be more specific. I've a df named Classification that has three values ex. Value1, Value2, Value3.

I tried:
<OTRS_TICKET_DynamicField_Classification>
and
OTRS_TICKET_DynamicField_Classification_Value>
and
OTRS_TICKET_DynamicField_Classification_Value1>, <OTRS_TICKET_DynamicField_Classification_Value2>, <OTRS_TICKET_DynamicField_Classification_Value3>

but none of them works.
What I get in the emails is:
Classification: -
I've checked these tickets and that field was not empty but had a value set.
I don't know what else to try...
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: How to include Dropdown DF in email notifications

Post by RStraub »

Sorry, tried to reproduce this but I can't get my notification beeing sent out :shock:
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
elitt
Znuny newbie
Posts: 70
Joined: 08 Jan 2015, 17:01
Znuny Version: 5.0.10
Real Name: Egareg JAOUEN
Company: Elitt

Re: How to include Dropdown DF in email notifications

Post by elitt »

In my templates (for emails) I use : <OTRS_TICKET_DynamicField_Description> to insert the value of the "Description" field.
OTRS v5.0.10 on Fedora25 with posgreSQL 9.4.9 database
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to include Dropdown DF in email notifications

Post by reneeb »

Is the notification sent on a TicketCreate event? Then the dynamic fields aren't set. They are set after the TicketCreate event is triggered...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply