<html xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:u1="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:u2="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:u3="">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--a:link
{mso-style-priority:99;}
span.MSOHYPERLINK
{mso-style-priority:99;}
a:visited
{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
{mso-style-priority:99;}
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Calibri;}
@font-face
{font-family:-webkit-monospace;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.emailstyle17
{font-family:Arial;
color:windowtext;}
span.EmailStyle18
{font-family:Calibri;
color:#1F497D;}
span.EmailStyle19
{font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks </span></font><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Mark</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I tried that but it doesn’t seem to
work. Here’s the code I put in the scrip;</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'>my $tickets = new
RT::Tickets(RT->SystemUser)</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'>my $id = $self->TicketObj->id;</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'>my $queue =
$self->TicketObj->QueueObj->Name;</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> </span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'>return 1 unless (defined($id)); #
Can this be undefined?</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> </span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> $tickets->FromSQL('Type =
"reminder" AND RefersTo="'.$id.'"');</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> while (my $ticket =
$tickets->Next) {</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> $RT::Logger->info("Closing
associated reminder");</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> $ticket->SetStatus("resolved");
</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'>}</span></font></span></p>
<p class=MsoNormal style='margin-left:.5in'><span class=apple-style-span><font
size=2 color=black face=-webkit-monospace><span style='font-size:10.0pt;
font-family:-webkit-monospace;color:black'> return 1;</span></span></font></span>
</p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have zero knowledge of perl so I don’t know if
this is correct.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Regards</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Roedel, </span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>Mark</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
[mailto:</span></font><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma'>Mark</span></font><font size=2
face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>Roedel@letu.edu]
<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>10
February 2009</span></font><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma'> </span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>23:04</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> </span></font><font size=2
face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>Jim
Tambling</span></font><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma'>; </span></font><font size=2
face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>rt-users@bestpractical.com</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [rt-users] Reminders
still open after a ticket is closed</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'>Looks to me like <a
href="http://wiki.bestpractical.com/view/OnQueueChangeFixReminders"><font
color="#1f497d"><span style='color:#1F497D'>http://wiki.bestpractical.com/view/OnQueueChangeFixReminders</span></font></a>
should get you most of the way there as a jumping-off point. Obviously,
you’d change the scrip condition to “On Resolve” and you’d
use a $ticket->SetStatus(‘resolved’) call in place of the
$Ticket->SetQueue($queue) in the while loop...</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'>--</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'>Mark Roedel</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'>Senior Programmer/Analyst - Web Services</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'>LeTourneau University</span></font></p>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'> </span></font></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Jim Tambling<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 10, 2009
4:37 PM<br>
<b><span style='font-weight:bold'>To:</span></b> rt-users@bestpractical.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [rt-users] Reminders
still open after a ticket is closed</span></font></p>
</div>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>If I set a reminder for a ticket,
after the ticket is resolved the reminder is still active. Is there anyway to
automate closing the reminders on resolution of the ticket?</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Regards</span></font></p>
</div>
</body>
</html>