GenericAgent filter option for TicketChangeTimeOlderMinutes

Moderator: crythias

Locked
artjoms15
Znuny advanced
Posts: 121
Joined: 30 Aug 2011, 10:48
Znuny Version: 3.3.8 && 4.0.9
Real Name: Artjoms Petrovs
Location: Latvia

GenericAgent filter option for TicketChangeTimeOlderMinutes

Post by artjoms15 »

Hello. Is there an option to filter tickets by parameter TicketChangeTimeOlderMinutes, during Generic Agent search?
I' ve created this cronjob, based on example from this thread http://forums.otrs.org/viewtopic.php?f=62&t=6843 But...
a) It just ignores the TicketChangeTimeOlderMinutes line if the value is too small and close the ticket in an instant
b) It ignores the job itself if value is greater than ~ 32000

Maybe someone have some experience with this issue?

Code: Select all

	# --
    # [name of job] -> auto-close tickets which requires UAT
    # --
    'auto-close tickets which requires UAT' => {
        # get all tickets with these properties
        States => ['UAT needed'],
        TicketChangeTimeOlderMinutes=> 42300,
        # new ticket properties (no option is required,
        # use just the options which should be changed!)
        New => {
            # if you want to add a Note
            State => 'UAT successful',
			Note => {
                From => 'GenericAgent',
                Subject => 'UAT time finished',
                Body => 'The UAT time of this ticket has been reached! New State is set to "UAT successful"',
            },
        },
    },
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
artjoms15
Znuny advanced
Posts: 121
Joined: 30 Aug 2011, 10:48
Znuny Version: 3.3.8 && 4.0.9
Real Name: Artjoms Petrovs
Location: Latvia

Re: GenericAgent filter option for TicketChangeTimeOlderMinu

Post by artjoms15 »

Thank You OTRS Team.
Took a look at OTRS 3.1 BETA release notes and found, that this support has been implemented. So waiting for the stable release :)
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
Locked