[rt-users] Asset for RT 1.0.2 and rt-crontool

2015-03-02 Thread Andrey K
Hi, I've installed RT 4.2.9 and Asset 1.0.2 and now try to configure it for tech support. Is it possible to use rt-crontool to change a status of an asset depend on it's custom field? I'd like to create Expiration data custom field to change status of assets if data expired. How to do

Re: [rt-users] Asset for RT 1.0.2 and rt-crontool

2015-03-02 Thread Alex Vandiver
On Mon, 2 Mar 2015 19:46:36 +0300 Andrey K a...@rambler.ru wrote: Is it possible to use rt-crontool to change a status of an asset depend on it's custom field? I'd like to create Expiration data custom field to change status of assets if data expired. Assets doesn't have support for

Re: [rt-users] Asset for RT 1.0.2 and rt-crontool

2015-03-02 Thread Andrey K
So, is it impossible to act on assets like tickets from rt-crontool? Assets doesn't have support for triggered actions (scrips) yet.   You can override the AddCustomFieldValue method on RT::Asset to accomplish this manually. - Alex

Re: [rt-users] Asset for RT 1.0.2 and rt-crontool

2015-03-02 Thread Alex Vandiver
On Mon, 2 Mar 2015 21:33:12 +0300 Andrey K a...@rambler.ru wrote: So, is it impossible to act on assets like tickets from rt-crontool? As of now, yes. rt-crontool is still ticket-centric, in that its search predicates only return tickets, and its actions are still Scrips' actions, which assume

Re: [rt-users] Asset for RT 1.0.2 and rt-crontool

2015-03-02 Thread Andrey K
I don't understand how to do this task if I try to override AddCustomFieldValue method... Each my asset record have custom field Expiration date. This field is mandatory and fill in at the moment of creation. I thought if I run each night some tool like rt-crontool I can check this custom