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

Is it possible to manipulate Ticket Forms with the wrapper? #66

Closed
tmargot opened this issue Mar 6, 2014 · 3 comments
Closed

Is it possible to manipulate Ticket Forms with the wrapper? #66

tmargot opened this issue Mar 6, 2014 · 3 comments

Comments

@tmargot
Copy link

tmargot commented Mar 6, 2014

First off, thank you for the wrapper it is amazing!

I need to perform only certain functions on tickets created via certain forms.

A use-case of processing would be:

  1. Open a ticket
  2. Retrieve all the Ticket Forms from account as documented in Zendesk REST API docs
  3. Iterate through the Ticket Form IDs returned and match to the open ticket's ticket_form_id fields.
  4. Check to see if matched Ticket Form label contains my predetermined form label prefix and if so process it.

Many thanks,
Tristan

@eneifert
Copy link
Contributor

Hi Tristan,

I have now added the Ticket Form methods found here. Unfortunately I believe there is a problem with the Update Ticket method and DeleteTicketForm methods on the Zendesk side. I will open some tickets right now so hopefully they will get it fixed soon.

But I think everything you need is tested and working :)

Eric

@tmargot
Copy link
Author

tmargot commented Mar 11, 2014

Thanks Eric, so quick!

@eneifert
Copy link
Contributor

You are welcome :)

Also with regards to DeleteTicketForm I just got this response from Zendesk:

I just replicated this in my account and I believe I know the issue. I also had a 422 error with this
description: "Cannot delete an active ticket form is invalid". That means that the ticket form you are 
trying to delete is active on your account, so it can't be deleted. If you want to delete the form you 
would first want to deactivate it. Sorry this isn't explained in our documentation, but the error message is helpful.

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