We have recently added some new ticket statuses in using Lifecycles. Since then every time a ticket receives a reply it will change the ticket status to ‘open’ even if its in an ‘active’ status. We have the default Scrip enabled to Open tickets on correspond but we only want this to reopen resolved tickets on correspond. Is there a way to restrict this scrip to only reopen resolved tickets?
What you could do is disable the existing scrip that opens these tickets and then create a new scrip that still uses the ‘open inactive tickets’ action but write a custom condition to check if status is resolved and the transaction type is a correspond.
I’ve a related issue to this and I’ve tried to experiment with the above code-sample. In our case we only want Correspondance to switch to Open if an outside-actor is corresponding. I’ve a hard time figuring out how to identify this code-wise though, i.e. if Owner/AdminCC corresponds it shouldn’t switch to Open, otherwise it should.
Hi, thanks! This only took me halfway though as IsInbound only returns true for the requestor but for induviduals that’s CC that may respond to the ticket doesn’t trigger the ticket to open which is a neededd function.
retun 0 if $self->TicketObj->IsAdminCc($self->TransactionObj->CreatorObj->Id);
retun 0 if $self->TicketObj->IsOwner($self->TransactionObj->CreatorObj);
return 1;
I didn’t test this code but it should be very close.