Sorry, didn't read all,
1. Condition: CustomCondition:
if ( ($self->TransactionObj->Type eq "CustomField" ||
$self->TransactionObj->Type eq "Create" ) &&
($self->TicketObj->FirstCustomFieldValue('YourCustomFieldName') ||
$self->TicketObj->FirstCustomFieldValue('YourCustomFieldName')) ) {
return 1;
}
return 0;
Action: Userdefine:
Here the part of Gabriele but with the content check:
return(0) unless ($self->TicketObj->Type eq 'ticket');
if ($self->TicketObj->FirstCustomFieldValue('YourCustomFieldName') =~
/Whatyouarelookingfor/i) {
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;
}
return 0;
Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.),
Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke,
Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer
Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE
812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz:
Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne
-----Urspruengliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Franzini,
Gabriele [Nervianoms]
Gesendet: Mittwoch, 25. November 2009 12:25
An: [email protected]
Cc: [email protected]
Betreff: Re: [rt-users] Auto-creating a 'dependant' ticket On Transaction
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 <[email protected]>
>Subject: [rt-users] Auto-creating a 'dependant' ticket On Transaction
>To: [email protected]
>Message-ID: <[email protected]>
>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.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com Commercial support:
[email protected]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [email protected]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com