Hello,
I'm trying to find a way to have an ACL determine the email address of the customer, and add it automatically in the ticket field.
We start our tickets from a SiteID (a machine's number that we have with our client), and depending on this we need to send the ticket to different people.
Is it possible to configure an ACL that does this?
DynamicField_SiteID => SiteID1
Customer user=> john@something.more
So far I have tried with
Possible => Ticket => CustomerUser => "John@..."
Possible => Ticket => CustomerUserID => 1
Thanks in advance.
Matt
ACL: fill in customer email
Moderator: crythias
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
ACL: fill in customer email
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: ACL: fill in customer email
ACL does not fill anything, it only restricts values that can be chosen or set.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: ACL: fill in customer email
That was quick!
Thank you for the response. I conclude nothing like this is possible?
Thats a shame, would have been nice to just choose the site ID and watch the form fill itself
Thank you!
Thank you for the response. I conclude nothing like this is possible?
Thats a shame, would have been nice to just choose the site ID and watch the form fill itself

Thank you!
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: ACL: fill in customer email
Describe what you want to achieve then:
SiteID is a dynamicField?
And you want, that if a certain value is selected, a certain customerID is filled in?
SiteID is a dynamicField?
And you want, that if a certain value is selected, a certain customerID is filled in?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: ACL: fill in customer email
Sort of.
I want the SiteID to determine about which customer the ticket is, and fill in that customer user's email address into the "To customer user" field.
EDIT: and yes SiteID is a dynamic field.
Thanks
I want the SiteID to determine about which customer the ticket is, and fill in that customer user's email address into the "To customer user" field.
EDIT: and yes SiteID is a dynamic field.
Thanks
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: ACL: fill in customer email
Well, this is a quick solution based on javascript. It binds a function to the dynamicfield and on change sets a customer (but also overwrites all other values, so you'd have to select the SiteID first):
Add a form action to the bottom of AgentTicketPhone (or Email)
And add a JS function to the block [% WRAPPER JSOnDocumentComplete %]:
Add a form action to the bottom of AgentTicketPhone (or Email)
Code: Select all
<form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" id="FillCustomerBasedOnDF">
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
<input type="hidden" name="Subaction" value="StoreNew"/>
<input type="hidden" name="FormID" value="[% Data.FormID | html %]"/>
<input type="hidden" name="CustomerUser" value=""/>
<input type="hidden" name="NextStateID" value="new" />
<input type="hidden" name="ExpandCustomerName" value="2"/>
</form>
Code: Select all
$('#DynamicField_SiteID').bind('change', function (Event) {
// Here you'd have to add a switch which decides which customer to fill, based on the DF-value.
$('#FillCustomerBasedOnDF input[name=CustomerUser]').val("AdressOfYourCustomer@something.de");
$('#FillCustomerBasedOnDF').submit();
});
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: ACL: fill in customer email
Thank you RStraub,
I will try this later. I'll keep you posted if it worked out or not.
Regards
I will try this later. I'll keep you posted if it worked out or not.
Regards
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database