JB,
"AND Then, at some point, I introduced 'CFName'... which is not the
same as 'CFname'... which kept anything from working for quite a while."
That's funny. I can't tell you how many times I've done that.
I have a question on your CF values. This may seem dumb and I don't
want to i
Status update: Due to some fine, fine IRC-based help, I've got this
working - mostly.
The problems were:
$OUTPUT was being declared and dumped inside the loop, so nothing was
ever being set,
AND Then, at some point, I introduced 'CFName'... which is not the same
as 'CFname'... which kept anything
Quoth JB Segal ([EMAIL PROTECTED]):
> { my @CFlist = ('Product', 'Application Area');
> foreach my $CFname (@CFlist) {
> my $CFvalues = $Ticket->CustomFieldValues($CFname);
> my $OUTPUT;
> while ( my $value = $CFvalues->Next ) {
> $CFName =~ s/ /-/g;
> $OUTPUT .= "X-$CFname: ";
>
Quoth JB Segal ([EMAIL PROTECTED]):
> Kenn,
> This is fabulous! Thank you so much.
> Would you mind me sticking this in to the wiki to fix the broken
> information that's in there?
I tweaked the wiki, mainly noting that what was there doesn't work, but
also including a bit of the howto.
Further w
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JB Segal
Sent: Friday, 14 December 2007 9:43 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] CFs in Templates?
Kenn,
This is fabulous! Thank you so much.
Would you mind me sticking this in to the wiki to fix the broke
JB,
Actually, all I did in that Template is use information that is already
in one example or another on the wiki. Gene LeDuc was a HUGE help in
understanding how some of this works in scrips and templates. I can only
assume a lot of his understanding came from stuff already in the wiki as
Kenn,
This is fabulous! Thank you so much.
Would you mind me sticking this in to the wiki to fix the broken
information that's in there?
Everyone: Is there a matrix (simpler than grovelling through all the
perldoc that's out there) of all the objects you can pull out of a
ticket/stick in to a temp
JB,
Here is a copy of a "Template" I use. In this template, I am grabbing a
Custom Field (named 'Description') and printing it in the body of an email:
Subject: Request Titled: "{$Ticket->Subject}" has been Rejected!
--
At Thursday 12/13/2007 01:15 PM, JB Segal wrote:
I don't think that your last sentence here is right...
The 2nd wiki page I mentioned,
http://wiki.bestpractical.com/view/Template
says in part:
What fields can at Template have?
A template can have a large number of fields. Look at the article
Te
Quoth Stephen Turner ([EMAIL PROTECTED]):
>
> At Thursday 12/13/2007 12:07 PM, JB Segal wrote:
>
> >So how does this mesh with the below-quoted Template Field
> >'CustomField-'? It _looks_ like that's just supposed to Do The
> >Right Thing, but it obviously doesn't.
> >
> >Oh! Or is this a poor n
Thanks for clearing that up, Steve. I wasn't aware of #2.
Gene
At 09:34 AM 12/13/2007, Stephen Turner wrote:
At Thursday 12/13/2007 12:07 PM, JB Segal wrote:
So how does this mesh with the below-quoted Template Field
'CustomField-'? It _looks_ like that's just supposed to Do The
Right Thing
At Thursday 12/13/2007 12:07 PM, JB Segal wrote:
So how does this mesh with the below-quoted Template Field
'CustomField-'? It _looks_ like that's just supposed to Do The
Right Thing, but it obviously doesn't.
Oh! Or is this a poor naming thing, and really the template field
should be named so
Quoth Gene LeDuc ([EMAIL PROTECTED]):
> I'm not sure what your end goal is, but I use the following subroutine in my
> templates when I need to
My goal is to give people things to sort on in their mailer, such that
they can better manage the flood of incoming mail.
> get CFs. It's mostly from
I'm not sure what your end goal is, but I use the following subroutine in
my templates when I need to get CFs. It's mostly from various wiki examples.
### Returns custom field value
### get_custom($field_name)
sub get_custom {
my $target_name = $_[0];
my $val = $Ticket->FirstCusto
According to http://wiki.bestpractical.com/view/Template_Fields
"Key Name Meaning
CustomField- => custom field value"
But creating a per-queue 'Correspondence' template which looks exactly
like the Global 'Correspondence' template with
CustomField-10: yes
CustomField-18: ye
15 matches
Mail list logo