Yes, it's possible to engineer a search to do what you're asking - search first for all the tickets observed in the last 30 days, find all their states, and then extend your search backwards for events whose creation was not found in the original time range. Possible to do, but unlikely to be the best approach.
To help you brainstorm the actual best approach, can you define your goal? If you wanted to list the state of all tickets that were opened in the last 30 days, then searching back 30 days would suffice, because every state a ticket had been in would be contained in that window. But obviously that's not the case, so maybe you're searching for the history of all tickets that were closed in the last 30 days? That's a pretty different beast, since a ticket might have been opened 31 days ago or maybe 180 days ago, depending on the SLA for your tickets.
If you can define your goal and describe any real-world limitations (e.g. "No ticket is allowed to exist in an open state for more than 45 days"), then I'm happy to help craft an appropriate search.
... View more