[rt-users] how to allow update subject line if update is from specific email address

Atif Mehboob atif.mehboob at eckoh.com
Tue Nov 18 07:11:13 EST 2014


Hi Landon,

Thank you for your reply. I have created the scrip as you suggested but there is no impact and subject line is still the same. Any suggestions please?

Cheers,
Atif

From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Landon Stewart
Sent: 13 November 2014 16:51
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] how to allow subject line if update is from specific email address

On Nov 13, 2014, at 5:06 AM, Atif Mehboob <atif.mehboob at eckoh.com<mailto:atif.mehboob at eckoh.com>> wrote:

Hi All,

We are using RT 4.2.1. How can we allow a specific email address to update the subject line of ticket in any queue.  Any suggestions please?

Regards,
Atif

Hi Atif,

We do this using a scrip (in this case it'd be a global scrip).  Update it with the email address in question.

Description:
Update the subject for theemail at address.com<mailto:theemail at address.com>

Condition:
On Correspond

Action: (User defined)
my $attachments = $self->TransactionObj->Attachments;
$attachments->Columns( qw(id Headers Subject) );
my $attachment = $attachments->First;
return 0 unless $attachment;
return 0 unless $self->TicketObj->IsWatcher( Type => 'Requestor', Email => 'theemail at address.com<mailto:theemail at address.com>' );
my $subject = $attachment->GetHeader('Subject');
return 0 unless $subject;
$self->TicketObj->SetSubject($subject);
return 1;

Template:
Global template: Blank

Stage:
TransactionCreate

--

Atif Mehboob
Linux Administrator

Eckoh UK Limited
Telford House, Corner Hall
Hemel Hempstead, Hertfordshire HP3 9HN

T 01442 458336
M n/a
W www.eckoh.com

[cid:image0a7d02.PNG at f5b61b57.4f86ce8d]<http://www.linkedin.com/company/eckoh-plc> [cid:imageb2cf0a.PNG at 4f359902.46a5a5c0] <http://twitter.com/Eckoh>

US Headquarters:
Eckoh, Inc.
11811 N. Tatum Blvd., Suite 3031
Phoenix, AZ  85028


This communication contains information, which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s) only. If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender and then delete it. Opinions expressed in this message are those of the author, and are not binding on the company.
Registered in England and Wales, No. 2796531
Registered office: Telford House, Corner Hall, Hemel Hempstead, Hertfordshire HP3 9HN
A member of the Eckoh Plc group of companies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141118/7add6d83/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image0a7d02.PNG
Type: image/png
Size: 1931 bytes
Desc: image0a7d02.PNG
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141118/7add6d83/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imageb2cf0a.PNG
Type: image/png
Size: 1275 bytes
Desc: imageb2cf0a.PNG
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141118/7add6d83/attachment-0001.png>


More information about the rt-users mailing list