osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
I am having an issue with submitting tickets via the API with required custom fields.
Scenario: I have created a two custom fields that ask for the users account name (short answer) and the last time that the user used the account (choice) that are required of the user. I have added this custom form to my help topic.
Challenge: I am using a 3rd party wrapper for my ASP.NET application (I have already contacted the dev for assistance and he recommended I post here after we tried some debugging). If the fields are set to not required, the ticket goes in just fine. However, it does not include the username or lastused variable. If, they are required, it returns a error of "Unable to create new ticket: validation errors: 0: IMS Account Username is a required field 1: Last Time Used is a required field".
Attempts to debug: I have tried several things but the most useful data is this...I installed Fiddler2 and began to inspect the JSON requests that were being sent from my application to the OSticket API system. Here is the RAW data from my JSON request to the server's API:
"name": "Joe Smith",
"subject": "Computer Bug",
"message": "data:text/plain,This is a test of the API System",
Everything looks to be going to the system correctly but it is not interpreting my request correctly or something else is wrong.
Things to Note:
- I can submit a basic ticket that has not required fields (aka the stock form)
- I was able to successfully submit a ticket using the "phone" example in the documentation provided by the osticket team
|osTicket Version||v1.9.2 (4827655)|
|Server Software||Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9|
Please help me. This is driving me crazy. I have tried everything I can think to try.