- write-ticket ticketprocedure
Write ticket (a ticket record instance) to the filesystem, in the database directory (it does not perform git operations) and return its SHA1 hash.
If ticket does not have an id (i.e., (ticket-id ticket) => #f), an identifier (SHA1 hash) will be generated with the hash-ticket procedure.