Routing Tickets Based on LDAP fields

Moderator: crythias

Locked
rameshckp
Znuny newbie
Posts: 10
Joined: 20 Feb 2014, 07:57
Znuny Version: 3.3.7
Real Name: Ramesh Chandran
Company: Executive Centre

Routing Tickets Based on LDAP fields

Post by rameshckp »

Hi,

We are planning to route incoming email and web tickets based on the Customer Users LDAP "physicalDeliveryOfficeName" attribute.
The intent is to route the ticket to a specific agent based on office location.

Any suggestions?

Help will be much appreciated.

Thanks
- Ramesh
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: Routing Tickets Based on LDAP fields

Post by reneeb »

Is that attribute already added in the Mapping for customer attributes in Kernel/Config.pm? Then you could create an event module that listens to the TicketCreate event that routes the ticket. You can find a sample event module at https://gist.github.com/reneeb/9385477
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
rameshckp
Znuny newbie
Posts: 10
Joined: 20 Feb 2014, 07:57
Znuny Version: 3.3.7
Real Name: Ramesh Chandran
Company: Executive Centre

SOLVED: Routing Tickets Based on LDAP fields

Post by rameshckp »

1. Create new Dynamic Fields
Add a new field for Ticket object. you can set type as text or dropdown as your need. (If dropdown is used, you have to ensure that the option list are exactly the same as the values in the LDAP attribute).

2. Configuration in SysConfig
Go to SysConfig > Ticket > Core::Ticket
Update the field DynamicFieldFromCustomerUser::Mapping
This can store LDAP attribute to dynamic field.

3. Set the jobs in Generic Agent.
Event based execution (single ticket): “TicketCreate” event
Ticket Filter: some values in the new dynamic field
Ticket Action: select agents in Set new agent/new owner or Set new agent/new responsible
Locked