Wrong status when ticket is created by customer

Good afternoon,

When the customer creates a ticket it only says status “Closed & Closed by Auto-Closing”.

I had found this command on the forum:
attribute.screens[‘edit’][‘ticket.customer’][‘filter’] = Ticket::State.where(name: [“1. Queued for Investigation”, “4. Closed”]).pluck(:id)

But then I get this error message:
NameError: undefined local variable or method attribute’ for main:Object
from (pry):5:in pry

How can I remove the status “Closed by Auto-Closing”?
And how can I add the status “Open”?

I’d bet that one of these two states you’re seeing there is the default open state. Slightly difficult to tell without knowing how your states are configured.

The old methods won’t work with 6.3 any more for reasons.
A Core Workflow should be able to solve your issue nether than less.