Example how to export tickets data to CSV