Escalate tickets without changing last updated field

Hi,

I have worked out how to modify RT::Action::EscalatePriority so that a
transaction is not recorded each time a ticket’s priority is escalated.

However, the LastUpdated date is still reset. It would be nice if this could
was left alone for this action.

Any suggestions as to how to go about this (including just suggesting which
module to look at in detail) would be much appreciated.

Thanks,

Rasjid.

Rasjid Wilcox
Melbourne, Australia (UTC +10 hrs)

Change the following line in EscalatePriority.pm:

Original:
my ($val, $msg) = $self->TicketObj->SetPriority($self->{‘prio’});

To:
my ($val, $msg) = $self->TicketObj->__Set(Field => ‘Priority’, Value =>
$self->{‘prio’}, RecordTransaction => 0);

Rasjid Wilcox wrote:

Change the following line in EscalatePriority.pm:

Original:
my ($val, $msg) = $self->TicketObj->SetPriority($self->{‘prio’});

To:
my ($val, $msg) = $self->TicketObj->__Set(Field => ‘Priority’, Value =>
$self->{‘prio’}, RecordTransaction => 0);

Ah. I had $self->TicketObj->_Set(… with one underscore.

Using two underscores seems to have done the trick.

Thanks!

Rasjid.

Rasjid Wilcox
Melbourne, Australia (UTC +10 hrs)

Rasjid Wilcox wrote:

Change the following line in EscalatePriority.pm:

Original:
my ($val, $msg) = $self->TicketObj->SetPriority($self->{‘prio’});

To:
my ($val, $msg) = $self->TicketObj->__Set(Field => ‘Priority’, Value =>
$self->{‘prio’}, RecordTransaction => 0);

Ah. I had $self->TicketObj->_Set(… with one underscore.

Using two underscores seems to have done the trick.
May be some one can write patch that achive same effect conditional?

I’ll update wiki later(I’m in DNS block list :() with this info.