Function for calling ticket by ID