[rt-users] rt-crontool and custom action
Richard Pijnenburg
Richard at widexs.nl
Thu Feb 18 08:07:39 EST 2010
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
"Opgeleverd".
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100218/01aff6eb/attachment.htm>
More information about the rt-users
mailing list