[rt-users] Auto-creating a 'dependant' ticket On Transaction
Franzini, Gabriele [Nervianoms]
Gabriele.Franzini at nervianoms.com
Wed Nov 25 06:24:45 EST 2009
Hello jrummel,
>From novice to novice, try a Scrip with something like:
1) Condition: as in OnCustomFieldValueChange (see wiki);
2) Action: User-defined, based upon DivideTicketIntoSubtasks (see
wiki):
my $trans = $self->TransactionObj;
my $tkt = $self->TicketObj;
my $requestors = [ $tkt->Requestors->MemberEmailAddresses];
my $new_tkt = RT::Ticket->new($RT::SystemUser);
my ($id, $msg) = $new_tkt->Create(
Queue => "your-queue-name-goes-here",
Subject => $tkt->Subject,
Status => 'new',
Requestor => $requestors,
DependedOnBy => $tkt->Id)
return 1;
HTH,
Gabriele Franzini
ICT Applications Manager
Nerviano Medical Sciences SRL
PO Box 11 - Viale Pasteur 10
20014 Nerviano Italy
tel +39 0331581477
fax +39 0331581456
>
>Date: Tue, 24 Nov 2009 15:19:41 -0800 (PST)
>From: jrummel <jrummel at imapp.com>
>Subject: [rt-users] Auto-creating a 'dependant' ticket On Transaction
>To: rt-users at lists.bestpractical.com
>Message-ID: <26505061.post at talk.nabble.com>
>Content-Type: text/plain; charset=us-ascii
>
>Hi All,
>
>I'm definitely an RT novice, and could use some assistance. I have a
ticket
>Custom Field ("Progress"). It is a Select One Value field. When
someone
>selects the value "Sent", I want a new ticket created that is 'depended
on
>by' the original ticket. Can anyone help me with this please? I'm
desperate!
>
>Thanks!
>
>P.S. If the new ticket could automatically have an owner assigned upon
creation
> as well, that would be ideal. But the above request is definitely
priority.
More information about the rt-users
mailing list