Re: [rt-users] Action with CustomField on merge tickets

2013-06-17 Thread Pavel Gulchouck
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


Re: [rt-users] Action with CustomField on merge tickets

2013-06-17 Thread Ruslan Zakirov
Hi,

RTIR has example of such scrip.


On Mon, Jun 17, 2013 at 1:49 PM, Pavel Gulchouck  wrote:

> 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
>



-- 
Best regards, Ruslan.


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

Re: [rt-users] Action with CustomField on merge tickets

2013-06-17 Thread Ruslan Zakirov
Hi,

RTIR has example of such scrip.


On Mon, Jun 17, 2013 at 1:49 PM, Pavel Gulchouck  wrote:

> 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
>



-- 
Best regards, Ruslan.


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

[rt-users] Action with CustomField on merge tickets

2013-06-17 Thread Pavel Gulchouck
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