Re: [rt-users] Action with CustomField on merge tickets
Thank you. I used $ticket_obj->Load($id) and got new ticket obj. When I use $ticket_obj->LoadById($id) I got original object and then able to use $ticket_obj->FirstCustomFieldValue(). My problem is solved. :) On Mon, Jun 17, 2013 at 02:23:51PM +0400, Ruslan Zakirov writes: > RTIR has example of such scrip. > > On Mon, Jun 17, 2013 at 1:49 PM, Pavel Gulchouck wrote: > >> If anybody merges tickets with CustomFields type "one value", then >> CF value of old (merged) ticket lost. >> Is it possible to take some action with this value from scrip >> or scrip runs only when old CF value is already unavailable? >> >> As I understand old ticket id is $self->TransactionObj->Ticket, >> but I cannot get its CF value. Please help. -- Pavel -- RT Training in Seattle, June 19-20: http://bestpractical.com/training
[rt-users] Action with CustomField on merge tickets
Hi. If anybody merges tickets with CustomFields type "one value", then CF value of old (merged) ticket lost. Is it possible to take some action with this value from scrip or scrip runs only when old CF value is already unavailable? As I understand old ticket id is $self->TransactionObj->Ticket, but I cannot get its CF value. Please help. -- Pavel -- RT Training in Seattle, June 19-20: http://bestpractical.com/training
[rt-users] Add value to array in RT_SiteConfig.pm
Hi. Is it possible to add a value to array in config? I want to add one custom script to @JSFiles, but cannot find anything like Push() or Add() in config parser, only Set(). Is the only way copy all predefined array from RT_Config.pm to RT_SiteConfig.pm? The same question for add (or modify) some key/value of %Lifecycles hash without copying it all to RT_SiteConfig.pm. Thanks. -- Pavel