Action to create an invoice on a transition

Action to create an invoice on a transition

Hi,

Is there any way to create an invoice as an action on a transition in a blueprint? Or is there a way to do so via workflow in Desk? Ideally, I'd like a draft invoice created automatically at a certain transition, based on a couple fields in my ticket. I was thinking about doing this via Flow, but I don't see a way to tie it to the ticket with that method.

Additionally, I was wondering if there are any fields in analytics tables that shows the invoice is connected to a ticket. I did not see an entry for this and want to do reporting on the time spent on a ticket and how much was invoiced.

Thanks,