<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=AutoOpenProblem</id>
	<title>AutoOpenProblem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=AutoOpenProblem"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AutoOpenProblem&amp;action=history"/>
	<updated>2026-08-21T16:16:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=AutoOpenProblem&amp;diff=252&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AutoOpenProblem&amp;diff=252&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:17Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Problem =&lt;br /&gt;
&lt;br /&gt;
A common problem is users replying to a resolved ticket by email and re-opening the ticket. It&amp;#039;s often &amp;quot;thanks&amp;quot; note, sometimes it&amp;#039;s a completely new problem that should be in a new ticket, but sometimes it&amp;#039;s real follow up on the subject.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s hard to tell what is the best solution, but here is some ways to deal with it besides default RT behaviour to open tickets.&lt;br /&gt;
&lt;br /&gt;
= Just stop re-opening if ticket is resolved =&lt;br /&gt;
&lt;br /&gt;
This one way to go. People still get notifications, however such tickets don&amp;#039;t pop in active and can be overlooked. Take the following steps to implement:&lt;br /&gt;
&lt;br /&gt;
* Go to the scrip editor (Configuration -&amp;amp;gt; Global -&amp;amp;gt; Scrips).&lt;br /&gt;
* Edit scrip #1 - &amp;lt;code&amp;gt;On Correspond Open Tickets with template Blank&amp;lt;/code&amp;gt;&lt;br /&gt;
* Change the &amp;lt;code&amp;gt;Condition&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;On Correspond&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;User Defined&amp;lt;/code&amp;gt;&lt;br /&gt;
* Set the &amp;lt;code&amp;gt;Custom condition&amp;lt;/code&amp;gt; field as below:&lt;br /&gt;
&lt;br /&gt;
 return 0 unless $self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Type eq &amp;#039;Correspond&amp;#039;;&lt;br /&gt;
 return 0 if $self-&amp;amp;gt;TicketObj-&amp;amp;gt;Status eq &amp;#039;resolved&amp;#039;;&lt;br /&gt;
 return 1;&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;lt;code&amp;gt;Update&amp;lt;/code&amp;gt; button to save your changes.&lt;br /&gt;
&lt;br /&gt;
Later you can revert it back, edit scrip #1 again and change the &amp;lt;code&amp;gt;Condition&amp;lt;/code&amp;gt; back to &amp;lt;code&amp;gt;On Correspond&amp;lt;/code&amp;gt;, then click on &amp;lt;code&amp;gt;Update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Stop re-opening if ticket is resolved more than 7 days and send an autoreply =&lt;br /&gt;
&lt;br /&gt;
Create an new global template. Change the global scrip &amp;quot;On Correspond Open Tickets with template Blank&amp;quot; this way:&lt;br /&gt;
&lt;br /&gt;
* Condition: User Defined&lt;br /&gt;
* Action: Autoreply To Requestors&lt;br /&gt;
* Template: the new template&lt;br /&gt;
&lt;br /&gt;
Put this in Custom condition:&lt;br /&gt;
&lt;br /&gt;
 my @QueueList = qw(queuename1 queuename2);&lt;br /&gt;
 my $Days = 60*60*24*7; # 7 days&lt;br /&gt;
 &lt;br /&gt;
 my $TransactionObj = $self-&amp;amp;gt;TransactionObj;&lt;br /&gt;
 my $TicketObj = $self-&amp;amp;gt;TicketObj;&lt;br /&gt;
 my $QueueObj = $TicketObj-&amp;amp;gt;QueueObj;&lt;br /&gt;
 my $QueueName = $QueueObj-&amp;amp;gt;Name;&lt;br /&gt;
 &lt;br /&gt;
 return 0 unless $TransactionObj-&amp;amp;gt;Type eq &amp;#039;Correspond&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 if ( ( grep /$QueueName/, @QueueList ) &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
      $TransactionObj-&amp;amp;gt;IsInbound &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
      $QueueObj-&amp;amp;gt;IsInactiveStatus( $TicketObj-&amp;amp;gt;Status ) &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
      time() - $TicketObj-&amp;amp;gt;ResolvedObj-&amp;amp;gt;Unix &amp;amp;gt; $Days ) {&lt;br /&gt;
   return 1; # send mail template&lt;br /&gt;
 } else {&lt;br /&gt;
   $TicketObj-&amp;amp;gt;SetStatus( &amp;#039;open&amp;#039; );&lt;br /&gt;
   return 0; # don&amp;#039;t send mail template&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Additionally, in your environment, the rule (autoreply if ticket closed more than 7 days) only applies to some queues. You have to put the queue names in @[[QueueList]]. If you don&amp;#039;t need that, remove the first line and remove the @[[QueueList]] check from the if.&lt;br /&gt;
&lt;br /&gt;
= Fork into a new ticket =&lt;br /&gt;
&lt;br /&gt;
Another way to go is to copy message and use it to start a new ticket. Scrip action that does this described in [[ForkIntoNewTicket]].&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>