<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
RT 3.6.3<div><br></div><div>Currently whenever anyone corresponds on a ticket and the ticket is not open say 'stalled' for example the Ticket gets reopened (by lib/RT/Action/AutoOpen.pm').</div><div><br class="webkit-block-placeholder"></div><div>Is there a way to stop it from doing this if the creator of the transaction is the owner of the ticket? My guys add responses to tickets and want to be able to do this without reopening.</div><div><br class="webkit-block-placeholder"></div><div>prepare in AutoOpen does the following to check if the creator of the transaction is the requestor:</div><div><br class="webkit-block-placeholder"></div><div>return undef if $status eq 'new' && $self->TransactionObj->IsInbound;</div><div><br class="webkit-block-placeholder"></div><div>IsInbound looks like (in Transaction_Overlay.pm)</div><div><br class="webkit-block-placeholder"></div><div><div>sub IsInbound {</div><div> my $self = shift;</div><div> $self->ObjectType eq 'RT::Ticket' or return undef;</div><div> return ( $self->TicketObj->IsRequestor( $self->CreatorObj->PrincipalId ) );</div><div>}</div><div><br></div>so I created:</div><div><br class="webkit-block-placeholder"></div><div><div>sub IsOwnerTransaction {</div><div> my $self = shift;</div><div> $self->ObjectType eq 'RT::Ticket' or return undef;</div><div> return ( $self->TicketObj->IsOwner( $self->CreatorObj->PrincipalId ) );</div><div>}</div><div><br class="webkit-block-placeholder"></div>and put the following in prepare in AutoOpen.pm:</div><div><br class="webkit-block-placeholder"></div><div>return undef if $self->TransactionObj->IsOwnerTransaction;</div><div><br class="webkit-block-placeholder"></div><div>However now nothing reopens my ticket whether it's the owner or not.</div><div><br class="webkit-block-placeholder"></div><div>Maybe there's an easier way, or my IsOwnerTransaction function is wrong. Any help appreciated.....</div><div><br class="webkit-block-placeholder"></div><div>Justin<br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>------------------------------------------------------</div><div>Justin Hayes</div><div>Support Manager</div><div><a href="mailto:justin.hayes@orbisuk.com">justin.hayes@orbisuk.com</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span> </div><br></div></body></html>