GenericAgent Title syntax

Moderator: crythias

Locked
Letter
Znuny newbie
Posts: 13
Joined: 29 May 2013, 10:25
Znuny Version: 3.2.7

GenericAgent Title syntax

Post by Letter »

Hello,

we used to run version 2.4 and had genericagent.pm conditions as Title => ['%xx%yyy%'] in order to sort some email sujects to queues.

However, these conditions don't seem to run in 3.2. I can"t seem to find and extensive list of condition syntax for genericagent.pm.
Did sombody succeed in having such conditions work?

Thank you,
Regards,
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: GenericAgent Title syntax

Post by Wolfgangf »

it's regular expressions - there's a lot of ressources + testing tools on the web
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Letter
Znuny newbie
Posts: 13
Joined: 29 May 2013, 10:25
Znuny Version: 3.2.7

Re: GenericAgent Title syntax

Post by Letter »

Thanks for the quick answer, but my problem seems to be that validated expressions such as "%queuename", which work in the web version of the Generic Agent don't seem to work in the .pm version.
Can someone confirm the below block ?

Code: Select all

'9150 black name' =>{
	#Get all tickets with these properties
		Queue => ['Inbox'],
		States => ['new','open'],
		Title => ['%TicketTitle%'],
	# new ticket properties
		New => 	{
			State => 'new',
			Type => 'ServiceRequest',
			Queue => TargetQueue',
			Note => { 
				From  => 'Generic Agent (GenericAgent.pm)',
				Subject => 'auto-move into TargetQueue',
				Body => 'The ticket was automatically moved from Inbox to TargetQueue via GenericAgent.pm.',
				}, 
			}, 
	}, 
Locked