Associate listings and deals to tickets

The specific issue is that the contact that raises the ticket is associated to the deal and listing and i would like the ticket to automatically be associated to the deal and listing.
Is that doable somehow?