[OTRS 3.3.5]-autofill bcc field while answering ticket

Moderator: crythias

Locked
Wojtek
Znuny newbie
Posts: 26
Joined: 17 Mar 2014, 12:11
Znuny Version: 3.3.8
Real Name: Wojciech
Company: UKE

[OTRS 3.3.5]-autofill bcc field while answering ticket

Post by Wojtek »

How can I set autofilling bcc field and cc field, when answering ticket (in OTRS).
I would like to set fixed address depends on queue.

Regards,
Wojtek
OTRS 3.3.8
Debian
Wojtek
Znuny newbie
Posts: 26
Joined: 17 Mar 2014, 12:11
Znuny Version: 3.3.8
Real Name: Wojciech
Company: UKE

Re: [OTRS 3.3.5]-autofill bcc field while answering ticket

Post by Wojtek »

Anybody could point me a file which needs to be modified?

Regards,
Wojtek
OTRS 3.3.8
Debian
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: [OTRS 3.3.5]-autofill bcc field while answering ticket

Post by reneeb »

Kernel/Modules/AgentTicketCompose.pm
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
Wojtek
Znuny newbie
Posts: 26
Joined: 17 Mar 2014, 12:11
Znuny Version: 3.3.8
Real Name: Wojciech
Company: UKE

Re: [OTRS 3.3.5]-autofill bcc field while answering ticket

Post by Wojtek »

Thank You for direction.
I've looked that file and tried to find the right section.

Is it possible to achieve something like:

When I answering queue1, put automatically email: group1@domain.com to BCC field,
when answering queue2 put automatically email: group2@domain.com to BCC field, etc?


Regards,
Wojtek
OTRS 3.3.8
Debian
Wojtek
Znuny newbie
Posts: 26
Joined: 17 Mar 2014, 12:11
Znuny Version: 3.3.8
Real Name: Wojciech
Company: UKE

Re: [OTRS 3.3.5]-autofill bcc field while answering ticket

Post by Wojtek »

Any direction, please?
OTRS 3.3.8
Debian
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [OTRS 3.3.5]-autofill bcc field while answering ticket

Post by crythias »

javascript
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
Wojtek
Znuny newbie
Posts: 26
Joined: 17 Mar 2014, 12:11
Znuny Version: 3.3.8
Real Name: Wojciech
Company: UKE

Re: [OTRS 3.3.5]-autofill bcc field while answering ticket

Post by Wojtek »

Here You can add javaScript file to specific form:
|-> SysConfig|-> Ticket|-> Frontend::Agent::ModuleRegistration

e.g.
Frontend::Module###AgentTicketCompose
- is to form opened when answer email ticket

So I created js file, copy it to
/opt/otrs/var/httpd/htdocs/js
where are all js

and then add it to AgentTicketCompose.

My js code managed to add address to cc field, but send doesn't work then. The problem is, that address is only written to bcc field and is different when I put it manually and choose from list (LDAP). Manually, it goes gray and I can remove it by minus sign or just add another one.

So, how to get such effect?

I've noticed, that AgentTicketCompose has 2 js files loaded:
->Core.Agent.CustomerSearch.js
->Core.Agent.TicketAction.js

maybe it is possible to use some function that is there?

Another thing is, that when I answer ticket and the AgentTicketCompose form is opened, field to is already filled up (with customer email address) - but don't know how?

Any support welcome.

Regards,
Wojtek
OTRS 3.3.8
Debian
Wojtek
Znuny newbie
Posts: 26
Joined: 17 Mar 2014, 12:11
Znuny Version: 3.3.8
Real Name: Wojciech
Company: UKE

Re: [OTRS 3.3.5]-autofill bcc field while answer.. [solved]

Post by Wojtek »

A function to add address is (in this case it is added to cc field):

Core.Agent.CustomerSearch.AddTicketCustomer( 'CcCustomer', 'email address') );

Regards
Wojtek
OTRS 3.3.8
Debian
Locked