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 

 

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22 & 23
Dublin, Ireland - Mar 15 & 16
Boston, MA, USA - April 5 & 6
Washington DC, USA - Oct 25 & 26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to