[rt-users] Placing 2 CF in RT ticket subject
Tim Cutts
tjrc at sanger.ac.uk
Wed Jan 2 04:50:37 EST 2013
On 29 Dec 2012, at 08:48, Nums <benwilson6 at gmail.com> wrote:
> I am trying to create a script which will pull 2 custom field values into the RT
> ticket subject upon creation.
> I am able to do it with one using script below, but
> unable to manage to pull 2 CF values, is this possible?
>
> my $subject = $self->TicketObj->FirstCustomFieldValue('Custom Field Selection')
>
> $self->TicketObj->SetSubject($subject);
my $field1 = $self->TicketObj->FirstCustomFieldValue('Custom Field Selection');
my $field2 = $self->TicketObj->FirstCustomFieldValue('Other Custom Field');
my $subject = "$field1 $field2";
$self->TicketObj->SetSubject($subject);
or something like that.
Tim.
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
More information about the rt-users
mailing list