<?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=NotResolved</id>
	<title>NotResolved - 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=NotResolved"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=NotResolved&amp;action=history"/>
	<updated>2026-08-22T15:04:24Z</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=NotResolved&amp;diff=2336&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=NotResolved&amp;diff=2336&amp;oldid=prev"/>
		<updated>2016-04-06T20:15:46Z</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; [[NotResolved]]&lt;br /&gt;
&lt;br /&gt;
= NotResolved =&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s just a simple condition which looks to see if the ticket isn&amp;#039;t marked as &amp;#039;resolved&amp;#039;. But, as I managed to write it, with the help of the mailing list and the Wiki, I want to share it. And it could, maybe, help someone else to faster understand the way to use his own conditions.&lt;br /&gt;
&lt;br /&gt;
== The perl module ==&lt;br /&gt;
&lt;br /&gt;
With the help of the &amp;#039;local&amp;#039; mecanism you can customize RT to fit your needs and keep them along the updates. First you need to create a local directory for your own Conditions&lt;br /&gt;
&lt;br /&gt;
 $mkdir rt/local/lib/RT/Condition/&lt;br /&gt;
&lt;br /&gt;
In this directory you could add all the conditions you will write. For example let&amp;#039;s write one :&lt;br /&gt;
&lt;br /&gt;
 package RT::Condition::NotResolved; # declare our package name&lt;br /&gt;
 use strict;&lt;br /&gt;
 use base qw(RT::Condition::Generic);# nherit from generic&lt;br /&gt;
 sub IsApplicable {                  # the method called by RT&lt;br /&gt;
   my $self = shift;&lt;br /&gt;
   my $ticket = $self-&amp;amp;gt;TicketObj;    # we are able to retrieve the ticket object&lt;br /&gt;
   if ($ticket-&amp;amp;gt;Status ne &amp;#039;resolved&amp;#039;)  { # we want to check if the ticket is resolved&lt;br /&gt;
       return(1);                    # if true, we can return 1, and the scrip action associated&lt;br /&gt;
                                     # will be executed&lt;br /&gt;
   }&lt;br /&gt;
   else {&lt;br /&gt;
       return(undef);                # if false, we don&amp;#039;t want that the scrip action will be executed&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 eval &amp;quot;require RT::Condition::NotResolved_Vendor&amp;quot;;&lt;br /&gt;
 die $@ if ($@ &amp;amp;amp;&amp;amp;amp; $@ !~ qr{^Can&amp;#039;t locate RT/Condition/NotResolved_Vendor.pm});&lt;br /&gt;
 eval &amp;quot;require RT::Condition::NotResolved_Local&amp;quot;;&lt;br /&gt;
 die $@ if ($@ &amp;amp;amp;&amp;amp;amp; $@ !~ qr{^Can&amp;#039;t locate RT/Condition/NotResolved_Local.pm});&lt;br /&gt;
 1;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
^^ I put the file here : rt/local/lib/RT/Condition/[[NotResolved]].pm&lt;br /&gt;
&lt;br /&gt;
== Tell RT that we have a new scrip condition ==&lt;br /&gt;
&lt;br /&gt;
Now we must inform RT that we have added a new scrip condition in order to let people use it. Use the following data file and [[AddDatabaseRecords]] instructions:&lt;br /&gt;
&lt;br /&gt;
 @ScripConditions = (&lt;br /&gt;
     {&lt;br /&gt;
            Name                 =&amp;amp;gt; &amp;quot;Lors d&amp;#039;une r�ponse � un ticket non r�solu&amp;quot;, # short description&lt;br /&gt;
            Description          =&amp;amp;gt; &amp;quot;Lors d&amp;#039;une r�ponse � un ticket non r�solu&amp;quot;, # long description&lt;br /&gt;
            ExecModule           =&amp;amp;gt; &amp;#039;NotResolved&amp;#039;,                               # name of our module&lt;br /&gt;
            ApplicableTransTypes =&amp;amp;gt; &amp;#039;Correspond&amp;#039;,                                # the transaction type in which&lt;br /&gt;
                                                                                 # the condition will be called&lt;br /&gt;
     },&lt;br /&gt;
     {&lt;br /&gt;
            Name                 =&amp;amp;gt; &amp;quot;Lors d&amp;#039;un commentaire � un ticket non r�solu&amp;quot;,&lt;br /&gt;
            Description          =&amp;amp;gt; &amp;quot;Lors d&amp;#039;un commentaire � un ticket non r�solu&amp;quot;,&lt;br /&gt;
            ExecModule           =&amp;amp;gt; &amp;#039;NotResolved&amp;#039;,&lt;br /&gt;
            ApplicableTransTypes =&amp;amp;gt; &amp;#039;Comment&amp;#039;,&lt;br /&gt;
     }&lt;br /&gt;
 );&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
as you can see we can use the same module for different transaction type. Available transaction types are:&lt;br /&gt;
&lt;br /&gt;
* Any&lt;br /&gt;
* Create&lt;br /&gt;
* Correspond&lt;br /&gt;
* Comment&lt;br /&gt;
* Status&lt;br /&gt;
* Set&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
Now you can simply use it directly from the web RT interface.&lt;br /&gt;
&lt;br /&gt;
== Thanks ==&lt;br /&gt;
&lt;br /&gt;
I want to thanks all people that have help me to better understand RT.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>