According to the API reference tickets is supposed to have a public_object_api property, but whenever I tried to call that property (to merge tickets) it gave me the error
AttributeError: 'Discovery' object has no attribute 'public_object_api'
After looking through the source code I found that in the file hubspot/discovery/crm/tickets/discovery.py it's missing some lines that existed in the equivalent company file (hubspot/discovery/crm/companies/discovery.py). I copied these lines into the ticket file on my local machine and it now works.
I also use python code in workflow custom code and would like to see this update pushed there so I can merge tickets in workflows (without having to switch languages or use requests).
According to the API reference tickets is supposed to have a public_object_api property, but whenever I tried to call that property (to merge tickets) it gave me the error AttributeError: 'Discovery' object has no attribute 'public_object_api'
After looking through the source code I found that in the file hubspot/discovery/crm/tickets/discovery.py it's missing some lines that existed in the equivalent company file (hubspot/discovery/crm/companies/discovery.py). I copied these lines into the ticket file on my local machine and it now works.
I also use python code in workflow custom code and would like to see this update pushed there so I can merge tickets in workflows (without having to switch languages or use requests).