I’m working on a get of Condition/Action modules to fork tickets that are marked Resolved after a certain amount of time. I’m starting with the forking of a ticket using this code as a base: https://rt-wiki.bestpractical.com/wiki/ForkIntoNewTicket
I have the code working that the ticket gets forked properly. However, I’m working on setting the Closed date to its original. When I look at the Transaction Wiki page, it states that a “Set” transaction applies to dates. In my Action code, when I dump all (or what I believe to be all) of the transactions, I don’t see any Set types or any reference to setting the Closed date. My current idea is to search the Transactions for Status changes, and locate those that move “to resolved” and then use that Transaction date as the Closed date. Is this the only possible way to find the dates? Should there be Set information in the Transaction list?