copy functions from trac.ticket to get a ticket-like functionality for crashes