<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey Robert, Alex,<div class=""><div><div><br class=""></div><div class=""><div><blockquote type="cite" class="">Is this just a display bug or are we not using the proper method to change the owner of the Ticket?<br class=""></blockquote><div><br class=""></div>You're not using the proper method.</div><div><br class=""><blockquote type="cite" class=""># do the actual 'status update'<br class="">my ($status, $msg) = $self->TicketObj->_Set(Field => 'Owner', Value => $Actor, RecordTransaction => 0);<br class=""></blockquote><br class=""></div></div><div>Should instead be:</div><div><br class=""></div><div>my ($status, $msg) = $self->TicketObj->SetOwner($Actor);</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div class="">What works: When user is first to correspond, Scrip executes and in Ticket view the Owner is set as expected.<br class=""><br class=""><br class="">What doesn’t work: If we go into the queue and list all the open tickets, the owner will be listed as “nobody” in this view, but if you open the ticket, there is an owner. If you change the owner to someone else and change it back, then it seems to fix this issue.<br class=""></div></div></blockquote></div></div><div><br class=""></div><div>The reason you need to use SetOwner is that the owner of a ticket is represented in two different database tables. The first is in the GroupMembers table, alongside Requestors, Ccs, and AdminCcs, and custom roles. This is what provides features like permissions. It's also what's used when you display the "Owner" column in search results. Tickets _also_ store their owner denormalized in the tickets table. This is used in, among other places, displaying the owner on ticket display, and in email notifications.</div><div><br class=""></div><div>->Set(Field => 'Owner') only updates the latter. ->SetOwner updates both.</div><div><br class=""></div><div>This explains the inconsistencies you're seeing. Please try switching your scrip to ->SetOwner and seeing if it helps for tickets going forward. For existing tickets with this problem, you'll need to address the consistency issue.</div><div><br class=""></div><div>It turns out that, for different reasons entirely ( <a href="https://issues.bestpractical.com/Ticket/Display.html?id=32381" class="">https://issues.bestpractical.com/Ticket/Display.html?id=32381</a> ), RT 4.4.2 adds an upgrade step and an rt-validator rule that detects and fixes such inconsistencies. You can find them here:</div><div><br class=""></div><div><a href="https://github.com/bestpractical/rt/commit/58bacce6ada754657c7f56fd91f20c573108c1ab" class="">https://github.com/bestpractical/rt/commit/58bacce6ada754657c7f56fd91f20c573108c1ab</a></div><div><a href="https://github.com/bestpractical/rt/commit/20d8daf6855e3c53ee8a79d68271941d4cdca159" class="">https://github.com/bestpractical/rt/commit/20d8daf6855e3c53ee8a79d68271941d4cdca159</a></div><div><br class=""></div><div>Best,</div><div>Shawn</div></body></html>