my own genericagent job-cant get filtering OK

Moderator: crythias

Locked
pma
Znuny newbie
Posts: 3
Joined: 09 Jan 2013, 12:11
Znuny Version: 3.1.11

my own genericagent job-cant get filtering OK

Post by pma »

hello,
i am trying to make my own job in genericagent file:
# 'Add first escalation note' => {
# # get all tickets with these properties
# Escalation => 1,
# Priorities => ['3 normal'],
# # new ticket properties (use just the options which should be changed!)
# New => {
# Priority => '4 high',
# Note => {
# From => 'GenericAgent reminder',
# Subject => 'First escalation',
# Body => 'First SLA expired!',
# ArticleType => 'note-internal',
# },
#
# },
# },
...in file it is uncommented, but i cant get it runing as i want to.
it should add note and increase priority, when ticket has priority nr. 3 and ticket is escalated.
it seems, that fiter on priority is wrong, because it is run on every genericagent timer and adds note to same ticket-also if it has priority nr. 4.
instead of: Priorities => ['3 normal'] i also tried:
Priorities => '3 normal',
Priority => ['3 normal'],
Priority => '3 normal',
...but no change.

any ideas? thank you.

edit: i am also interested in filering on SLAs-if you know the right command, please let me know.
Locked