<div dir="ltr"><div class="gmail_extra">On 27 June 2013 12:55, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">rt-crontool has the --transaction all argument for exactly this usage.<br>

</div>
Move your tickets, run rt-crontool (search or condition to find the<br>
tickets) --action FindIP --transaction all<br>
<br>
RT will scrap the complete history of those tickets running them<br>
through IP extractor (so all Create/Comment/Correspond would be<br>
checked).<br>
<br>
<a href="http://bestpractical.com/rt/docs/latest/rt-crontool.html" target="_blank">http://bestpractical.com/rt/docs/latest/rt-crontool.html</a><br>
<span class=""></span><div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div style>Well I attempted it and while it cycled through the tickets *and* their transactions it didn't process them as expected with the action provided.  I had to use RT::Action::RTIR_FindIP as the action since just specifying FindIP didn't work (failed to load module FindIP).  I don't know if I used the wrong action or if something else is awry here but the tickets themselves did not change even though there are IP addresses to be found in all of them except one.</div>

<div style><br></div><div style>Here's what I ran and a small sample of the output:</div><div style><br></div><div style><div># /opt/rt4/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg "Incident Reports" --condition RT::Condition::Overdue --action RT::Action::RTIR_FindIP --transaction all --verbose</div>

<div>1265908:</div><div><span class="" style="white-space:pre">     </span>Using transaction #3422057...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3422063...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3423198...</div>

<div><span class="" style="white-space:pre">    </span>Using transaction #3423201...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3423203...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3423857...</div>

<div><span class="" style="white-space:pre">    </span>Using transaction #3423858...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3424782...</div><div><span class="" style="white-space:pre">      </span>Using transaction #14047288...</div>

<div><span class="" style="white-space:pre">    </span>Using transaction #67295392...</div><div><span class="" style="white-space:pre">     </span>Using transaction #67295393...</div><div><span class="" style="white-space:pre">     </span>Using transaction #67295394...</div>

<div>1266189:</div><div><span class="" style="white-space:pre">     </span>Using transaction #3425710...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3425718...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3425742...</div>

<div><span class="" style="white-space:pre">    </span>Using transaction #3425743...</div><div><span class="" style="white-space:pre">      </span>Using transaction #3425847...</div><div><span class="" style="white-space:pre">      </span>Using transaction #14047295...</div>

<div><span class="" style="white-space:pre">    </span>Using transaction #67295419...</div><div><span class="" style="white-space:pre">     </span>Using transaction #67295420...</div><div><span class="" style="white-space:pre">     </span>Using transaction #67295421…</div>

<div><br></div><div style>etc...</div></div></div><br clear="all"><div><br></div>-- <br><div>Landon Stewart <LandonStewart@Gmail.com><br></div>
</div></div>