[rt-users] Approvals setup - working 75%, but ..
Barnacle Bob
barnaclebob at gmail.com
Fri Jul 23 10:46:37 EDT 2004
Here is my template. We assign the owner of the approval ticket based
on a custom field called building. The 2nd block of perl is to set
the requestor of the approval ticket to the same thing that was on the
original ticket.
===Create-Ticket: approval
Queue: MApprovals
Type: Approval
Owner: {
my %admins=(
"High School" => "karlapp",
"Crossroads" => "karlapp",
"Highlands" => "kpietri",
"East" => "kpietri",
"North" => "kpietri",
"West" => "kpietri",
"AltEd" => "kpietri",
"Special Ed" => "kpietri",
"Admin" => "kpietri");
my $building=$Tickets{"TOP"}->FirstCustomFieldValue(9);
my $owner=$admins{$building};
if($owner eq ""){
$owner="kpietri";
}
$owner;
}
{
my $requestors=$Tickets{"TOP"}->Requestors;
my @emails=$requestors->MemberEmailAddresses();
foreach $item(@emails){
$out.="Requestor: ".$item."\r\n";
}
$out;
}
Depended-On-By: {$Tickets{"TOP"}->Id}
Refers-To: {$Tickets{"TOP"}->Id}
Subject: Approval for ticket: {$Tickets{"TOP"}->Id} - {$Tickets{"TOP"}->Subject}
Content-Type: text/plain
Content: Your approval is requested for the ticket
{$Tickets{"TOP"}->Id}: {$Tickets{"TOP"}->Subject}
ENDOFCONTENT
On Thu, 22 Jul 2004 11:50:46 +0300, Odhiambo Washington
<wash at wananchi.com> wrote:
> * Barnacle Bob <barnaclebob at gmail.com> [20040722 01:01]: wrote:
> > Check the permisions for the queue holding the ticket to be approved.
> > The person doing approvals needs to have the "show ticket" right in
> > the queue the tickets reside in.
>
> Hi Karl,
>
> I am superuser. So am I not supposed to be able to view the ticket
> content?
> I have even given "Show Ticket and Show Ticket Comments" to some
> folks on the Approvals queue, but still .... no good.
>
> What does your template look like? The standard??
>
> Thanks for replying.
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
> +======================================================================+
> |\ _,,,---,,_ | Odhiambo Washington <wash at wananchi.com>
> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com
> |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
> '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
> +======================================================================+
> "We'll cross out that bridge when we come back to it later."
>
More information about the rt-users
mailing list