Ok, after trying to debug the issue I detected state the new correct state is written to the database and the ticket is really closed (used a search). But the new ticket state is not shown inside the webgui until I invalidate the cache I think. If I hit the "close" button on the web gui and close the "close" dialog without doing anything the ticket is shown as "closed" on the gui. So the real question is. How do I invalidate/update the cache to reflect the new state asap?
I try to close a ticket with a call to
Code: Select all
$success = $TicketObject->TicketStateSet(
TicketID => $ticket_id,
ArticleID => $CloseArticleID,
UserID => 1,
StateID => 2, #'closed successful',
);
but the ticket won't close a $succes is '2'. I tried to find what '2' means but didn't find any useful ressource (so far). The $ticket_id should be fine since a call to $TicketObject->ArticleCreate(...) right before the TicketStateSet works fine.
Does anyone has a useful hint?
I'm using OTRS 3.3.10 with Kix4OTRS on Debian Linix (wheezy).