Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Ruby/ticket_create_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
description: 'test ticket creation with attachments',
subject: 'new ticket sample',
cc_emails: ['myemail@testexample.com', 'test@testexample.com'],
email: 'test@test.com' }.to_json
email: 'test@test.com',
custom_fields: { cf_product_price: 20,
cf_product_color: 'green' } # Assuming that there are two custom fields "Product Price" and "Product Color".
}.to_json

freshdesk_api_path = 'api/v2/tickets'

Expand Down