zendesk / zendesk_api_client_rb

Official Ruby Zendesk API Client
http://developer.zendesk.com/
Apache License 2.0
387 stars 183 forks source link

custom_fields not setting up for tickets #448

Closed Bilal-Abbas-Gigalabs closed 3 years ago

Bilal-Abbas-Gigalabs commented 3 years ago

I am trying to save the custom fields but it is not saving I have also tried the exemplary data for the custom fields given at https://develop.zendesk.com/hc/en-us/articles/360059146153#setting-custom-field-values but it also not worked Following is the screenshot with the test data

issue

Bilal-Abbas-Gigalabs commented 3 years ago

I have figured it out 1- Add a custom field at zendesk_url/agent/admin/ticket_fields 2- After the creation of field it will generate an ID that I have used for the custom fields.

In my case, it was 360017140598

custom_fields: [
    {
       "id": 360017140598,
        "value": [hash: {}]
     }
  ],

custom fields

Thank you.