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

Hi,

RTIR has example of such scrip.On Mon, Jun 17, 2013 at 1:49 PM, Pavel Gulchouck gul@gul.kiev.ua 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: Training — Best Practical Solutions

Best regards, Ruslan.

Hi,

RTIR has example of such scrip.On Mon, Jun 17, 2013 at 1:49 PM, Pavel Gulchouck gul@gul.kiev.ua 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: Training — Best Practical Solutions

Best regards, Ruslan.

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. :slight_smile:

On Mon, Jun 17, 2013 at 02:23:51PM +0400, Ruslan Zakirov writes:

RTIR has example of such scrip.

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