Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't assign form id when creating a ticket #529

Open
tomeroszlak opened this issue Dec 8, 2022 · 1 comment
Open

Can't assign form id when creating a ticket #529

tomeroszlak opened this issue Dec 8, 2022 · 1 comment

Comments

@tomeroszlak
Copy link

Hey,
I'm creating a ticket with the following options:
crash_ticket: Ticket = Ticket( ticket_form_id=EMERGENCY_FORM_ID, requester=requester, subject="new crash ticket", comment=first_comment, )

But it doesn't open the ticket with the form id, this is what ZenPy is sending to ZenDesk:
{'json': {'ticket': {'custom_fields': [{'id': 1500002836061, 'value': 'Yes'}, {'id': 1500002887542, 'value': 'Yes'}, {'id': 360024121454, 'value': ['us', '1003', '134']}], 'id': None, 'requester_id': 399773503114, 'subject': 'new crash ticket', 'tags': ['crash', 'noc-team'], 'comment': {'body': "A ZenDesk ticket was created by tomer.oszlak \nTicket subject - testing \n Service affected - ['Create rider', 'Cannot Access VOC', 'Rider page'] \n City name - ['us', '1003', '134'] \n Multiple users affected? - False \n Can you recreate the issue? - Yes \n More information - testing new flow", 'id': None, 'public': True}, 'requester': {'email': 'viacrashbot@mail.com', 'id': 399773503114, 'name': 'via crash bot'}}}, 'timeout': 60.0, 'headers': None}

There is another option to open a ticket with a specific form id?

@ahmedsabriz
Copy link
Contributor

ahmedsabriz commented Dec 8, 2022

Although multiple forms are available on Suite Growth and above, the API reference mentions this is an enterprise only property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants