i will be as specific as possible<br><br>when a student generates a ticket for " Unexcused Early Release"<br><br>i have a scrip with this custom condition:<br><br>my $match = "Unexcused Early Release";<br>
my $t_subject = $self->TicketObj->Subject;<br>if ( $t_subject !~ /$match/i ) { <br>return 1; <br>} <br>else { <br>return 0; <br>} <br><br><br>which runs the Send Email action<br><br>and uses this template:<br><br>To: $Ticket->RequestorAddresses<br>
Subject: Unexcused Early Release {$Ticket->Subject}<br><br> <br>Hi $Ticket->FirstCustomFieldValue('Student_Name')<br><br>Thank you for your student report.<br><br>Please be aware that this is considered an unexcused early release in accordance with the student catalog. All time off requests must be made at least 2 weeks in advance, and/or a student must supply a doctor’s note for it to be considered excused. <br>
<br>Please remember any hours missed may result in over contract fees.<br><br>Each curriculum has required days and hours of attendance. Attendance records are strictly maintained and determine compliance with satisfactory progress for financial aid funding purposes. In order to receive financial aid, you must maintain at least 80% overall attendance.<br>
<br>Kind Regards,<br>Student Services<br><br><br>i would like the body of the email to use the contents of the field "Content" from Article #4 rather than the text above.<br><br><br>On Thu, Jun 28, 2012 at 9:34 AM, Kevin Falcone <<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>> wrote:<br>
><br>> On Wed, Jun 27, 2012 at 03:15:31PM -0700, jesse west wrote:<br>> > i see, i thought he meant to copy and paste the article into the template<br>> > what would that look like to use the API in a template?<br>
> > i can't find any documentation on this...<br>><br>> Are you looking for documentation about Articles?<br>> perldoc lib/RT/Article.pm perldoc lib/RT/Articles.pm<br>> Are you looking for documentation about templates, look at the<br>
> templates.pod file shipped in your docs directory.<br>><br>> I doubt documentation exists for the exact thing you're trying to do,<br>> so you'll need to be more specific about what you want to do.<br>
><br>> -kevin<br><br>