callback for create documents in ticket model