{ "id": "107773", "key": "AC-2497", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-04-04T20:40:32.000+0000", "created": "2013-01-12T10:47:28.000+0000", "labels": [ "ACS", "Custom", "Event", "Field", "Update" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Updating an ACS event custom field returns status 200 but fails to update the event data.\r\n\r\nExample Code:\r\n\r\nvar custom_data = {\r\n toLawEnforcement:true //boolean custom field in ACS\r\n}\r\nCloud.Events.update({\r\n event_id : eventID,\r\n custom_data: custom_data\r\n }, function(e) {\r\n Ti.API.log(JSON.stringify(e));\r\n }\r\n);\r\n\r\nExample Debug Data from ACS\r\n\r\n{ \"custom_data\" => \"{\"toLawEnforcement\":true}\", \"event_id\" => \"50df0018e0b1ba1a59000866\", \"ti_analytics\" => \"{\"id\":\"C5E5A427-5F5A-4815-B8BB-80801E57F5EF\",\"mid\":\"74478444-DCD9-4DFD-B5A1-324FBD7F6585\",\"aguid\":\"13cd9f18-adc0-469e-8f14-2d2f2c8cc311\",\"event\":\"cloud.events.update\",\"deploytype\":\"development\",\"sid\":\"CE63F3D2-F16F-421D-B66A-B807EF0E57C6\"}\", \"suppress_response_codes\" => \"true\", \"oauth_consumer_key\" => \"xxxxxxxxxxxxxxxxx\", \"_session_id\" => \"qbQ4U6iLK2RCjY1nV4fy87IJ6JY\", \"controller\" => \"events\", \"action\" => \"update\", \"version\" => \"v1\", \"format\" => \"json\" }\r\n\r\nDespite this, the custom field data remains false. I have tried as both boolean and string.", "attachment": [], "flagged": false, "summary": "ACS Event Update - Custom Data Field Not Being Updated", "creator": { "name": "bp4151", "key": "bp4151", "displayName": "Bruce Parr", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bp4151", "key": "bp4151", "displayName": "Bruce Parr", "active": true, "timeZone": "America/New_York" }, "environment": "ACS\r\nTitanium SDK 3.0", "comment": { "comments": [ { "id": "236085", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please modify your call to:\n{code}\nCloud.Events.update({ event_id : eventID, custom_fields: custom_data }, function(e) { Ti.API.log(JSON.stringify(e)); }\n);\n{code}\nThis should work. Please confirm.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-26T01:19:12.000+0000", "updated": "2013-01-26T01:19:12.000+0000" }, { "id": "283008", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Bruce,\n\nWe have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. If so, please send us the details so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it. ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T02:05:00.000+0000", "updated": "2013-12-07T02:05:00.000+0000" }, { "id": "286072", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as we got no further response from Bruce.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-28T07:07:23.000+0000", "updated": "2013-12-28T07:07:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }