Rt-crontool and custom action

Dear List,

I’m trying to write a CustomAction which I want to fire with rt-crontool

Currently I have for the crontool the following:

./rt-crontool --search RT::Search::FromSQL --search-arg “Queue =
‘Orders’ AND ‘CF.{Status}’ = ‘Opgeleverd’” --action RT::Action::
SetPriority --action-arg 100

This searches in the orders queue for tickets with a customfield set to

The SQL query is correct, I’ve tested it inside RT.

The only thing I’m bugging now is with the Action.

I don’t want to set the priority but I want to do 2 actions:

  1.   Set another value to the customfield.
  2.   Open the ticket ( because it's resolved )

How can I do this?

I found something with a Action::UserDefined but It’s not clear to me
how I can do that.

Thank you for your time.

Met vriendelijke groet / With kind regards,

Richard Pijnenburg