<?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=ReplyToResolved</id>
	<title>ReplyToResolved - 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=ReplyToResolved"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ReplyToResolved&amp;action=history"/>
	<updated>2026-08-21T17:21:53Z</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=ReplyToResolved&amp;diff=26339&amp;oldid=prev</id>
		<title>Tharn at 22:57, 13 August 2016</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ReplyToResolved&amp;diff=26339&amp;oldid=prev"/>
		<updated>2016-08-13T22:57:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:57, 13 August 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following Perl script is used to register i.e. active the above code in RT and is no longer necessary afterwards:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following Perl script is used to register i.e. active the above code in RT and is no longer necessary afterwards:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;#!/home/rt/perl/bin/perl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;#!/home/rt/perl/bin/perl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  use strict;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  use strict;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  use Unicode::String qw(utf8 latin1);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  use Unicode::String qw(utf8 latin1);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot;&gt;Line 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             ApplicableTransTypes =&amp;amp;gt; &amp;#039;Any&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             ApplicableTransTypes =&amp;amp;gt; &amp;#039;Any&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             );&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== problems ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== problems ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-3137:rev-26339:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Tharn</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=ReplyToResolved&amp;diff=3137&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=ReplyToResolved&amp;diff=3137&amp;oldid=prev"/>
		<updated>2016-04-06T20:36:16Z</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;[[HomePage]] &amp;amp;gt; [[Contributions]] &amp;amp;gt; [[ReplyToResolved]]&lt;br /&gt;
&lt;br /&gt;
= ReplyToResolved =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
this is a simple scrip to catch correspondence/reply to ticket marked &amp;#039;resolved&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== the scrip condition ==&lt;br /&gt;
&lt;br /&gt;
Save this file as e.g. /usr/local/share/request-tracker3.6/lib/RT/Condition/[[ReplyToResolvedTicket]].pm&lt;br /&gt;
&lt;br /&gt;
 package RT::Condition::ReplyToResolvedTicket;&lt;br /&gt;
 use strict;&lt;br /&gt;
 use base qw(RT::Condition::Generic); # thanks Ruslan for the suggestion&lt;br /&gt;
 sub IsApplicable {&lt;br /&gt;
    my $self = shift;&lt;br /&gt;
    my $ticket = $self-&amp;amp;gt;TicketObj;&lt;br /&gt;
    my $transaction = $self-&amp;amp;gt;TransactionObj;&lt;br /&gt;
    if ((($transaction-&amp;amp;gt;Type eq &amp;#039;Correspond&amp;#039;) || ($transaction-&amp;amp;gt;Type eq &amp;#039;Comment&amp;#039;))  &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
        $ticket-&amp;amp;gt;Status eq &amp;#039;resolved&amp;#039; &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
        $transaction-&amp;amp;gt;Creator != 1)  { # prevent loop&lt;br /&gt;
        return(1);&lt;br /&gt;
    }&lt;br /&gt;
    else {&lt;br /&gt;
        return(undef);&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
 eval &amp;quot;require RT::Condition::ReplyToResolvedTicket_Vendor&amp;quot;;&lt;br /&gt;
 die $@ if ($@ &amp;amp;amp;&amp;amp;amp; $@ !~ qr{^Can&amp;#039;t locate RT/Condition/ReplyToResolved_Vendor.pm});&lt;br /&gt;
 eval &amp;quot;require RT::Condition::ReplyToResolved_Local&amp;quot;;&lt;br /&gt;
 die $@ if ($@ &amp;amp;amp;&amp;amp;amp; $@ !~ qr{^Can&amp;#039;t locate RT/Condition/ReplyToResolved_Local.pm});&lt;br /&gt;
 1;&lt;br /&gt;
&lt;br /&gt;
== installation ==&lt;br /&gt;
&lt;br /&gt;
The following Perl script is used to register i.e. active the above code in RT and is no longer necessary afterwards:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#!/home/rt/perl/bin/perl&lt;br /&gt;
 use strict;&lt;br /&gt;
 use Unicode::String qw(utf8 latin1);&lt;br /&gt;
 # Replace this with your RT_LIB_PATH&lt;br /&gt;
 use lib &amp;quot;/home/rt/rt/lib&amp;quot;;&lt;br /&gt;
 # Replace this with your RT_ETC_PATH&lt;br /&gt;
 use lib &amp;quot;/home/rt/rt/etc&amp;quot;;&lt;br /&gt;
 use RT;&lt;br /&gt;
 use RT::Interface::CLI qw( CleanEnv GetCurrentUser );&lt;br /&gt;
 use RT::ScripCondition;&lt;br /&gt;
 CleanEnv();&lt;br /&gt;
 RT::LoadConfig();&lt;br /&gt;
 RT::Init();&lt;br /&gt;
 ##Drop setgid permissions&lt;br /&gt;
 RT::DropSetGIDPermissions();&lt;br /&gt;
 ##Get the current user all loaded&lt;br /&gt;
 our $CurrentUser = GetCurrentUser();&lt;br /&gt;
 unless( $CurrentUser-&amp;amp;gt;Id )&lt;br /&gt;
 {&lt;br /&gt;
   print &amp;quot;No RT user found. Please consult your RT administrator.\n&amp;quot;;&lt;br /&gt;
   exit 1;&lt;br /&gt;
 }&lt;br /&gt;
 my $sc = new RT::ScripCondition($CurrentUser);&lt;br /&gt;
 &lt;br /&gt;
 $sc-&amp;amp;gt;Create(&lt;br /&gt;
            Name                 =&amp;amp;gt; &amp;#039;On Reply to Resolved Ticket&amp;#039;,&lt;br /&gt;
            Description          =&amp;amp;gt; &amp;quot;Lors d&amp;#039;une r�ponse � un ticket r�solu&amp;quot;,&lt;br /&gt;
            ExecModule           =&amp;amp;gt; &amp;#039;ReplyToResolvedTicket&amp;#039;,&lt;br /&gt;
            ApplicableTransTypes =&amp;amp;gt; &amp;#039;Any&amp;#039;&lt;br /&gt;
            );&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== problems ==&lt;br /&gt;
&lt;br /&gt;
If you face problems with this scrip take a look at the [[NotResolved]] condition scrip as is it very similar, and I have detailled it more.&lt;br /&gt;
&lt;br /&gt;
== conclusion ==&lt;br /&gt;
&lt;br /&gt;
I personally use it with the [[ForkIntoNewTicket]] scrip action in order to open a new ticket on reply to resolved ticket. I also have disabled the global scrip On Reply Open by setting &amp;quot;Stage:&amp;quot; to &amp;quot;disabled&amp;quot;. For the new script use the following values:&lt;br /&gt;
&lt;br /&gt;
 Description: 	Replies to resolved tickets create a new ticket.&lt;br /&gt;
 Condition: 	On Reply To Resolved Ticket&lt;br /&gt;
 Action: 	Force Correspondence into new Ticket&lt;br /&gt;
 Template: 	Global Template: Correspondence&lt;br /&gt;
 Stage: 	TransactionCreate&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>