{ "id": "143224", "key": "AC-1305", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-21T01:18:28.000+0000", "created": "2015-01-20T11:34:33.000+0000", "labels": [ "acs", "cloud", "customobjects", "query" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "I use the ACS and I'm in trouble recently to get a custom object that has a photo. The photo attribute always returns null, and I have several applications using the same engine and always worked but recently new applications are with this problem.\r\n\r\n", "attachment": [ { "id": "53725", "filename": "mycode.txt", "author": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-20T11:34:33.000+0000", "size": 811, "mimeType": "text/plain" } ], "flagged": false, "summary": "Problem with custom object's query in ACS", "creator": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS, Titanium SDK 3.4.1.GA", "comment": { "comments": [ { "id": "339892", "author": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~neemo] Can you please provide me your custom object id? and which part of the photo attributes are missing for you?", "updateAuthor": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-20T15:28:15.000+0000", "updated": "2015-01-20T15:45:22.000+0000" }, { "id": "340050", "author": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I get the photo_id attribute but can not access the photo object itself\r\n\r\nResult.\r\n{\"menucategory\":[{\"user_id\":\"54bd45f208c91e0942175ad9\",\"photo_id\":\"54bd46da2ed88cabe3004dbb\",\"created_at\":\"2015-01-19T18:03:07+0000\",\"updated_at\":\"2015-01-19T18:03:07+0000\",\"title\":\"Teste1\",\"id\":\"54bd46da2ed88cabe3004dba\",\"cname\":\"menucategory\"}],\"success\":true,\"error\":false,\"meta\":{\"code\":200,\"status\":\"ok\",\"method_name\":\"queryCustomObjects\"}}\r\n\r\nHow can I get to the photo along with the custom object in the query?\r\nThanks", "updateAuthor": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-21T00:35:03.000+0000", "updated": "2015-01-21T00:35:03.000+0000" }, { "id": "340054", "author": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~neemo] can you please pass in response_json_depth=2 to get the photo object? ", "updateAuthor": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-21T00:41:11.000+0000", "updated": "2015-01-21T00:41:11.000+0000" }, { "id": "340059", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Just run a simple test to get response from customer query, here is the standard structure.\r\n{code:title=objects/test/query.json}\r\n{\r\n \"meta\": {\r\n \"code\": 200,\r\n \"status\": \"ok\",\r\n \"method_name\": \"queryCustomObjects\",\r\n \"page\": 1,\r\n \"per_page\": 10,\r\n \"total_pages\": 1,\r\n \"total_results\": 1\r\n },\r\n \"response\": {\r\n \"test\": [\r\n {\r\n \"created_at\": \"2015-01-21T00:43:15+0000\",\r\n \"updated_at\": \"2015-01-21T00:43:15+0000\",\r\n \"photo\": {\r\n \"id\": \"54bef622c069eb7fa500b558\",\r\n \"filename\": \"testImage.png\",\r\n \"size\": 52484,\r\n \"md5\": \"5e7438e831ba84297cc0cdecaa8445dd\",\r\n \"created_at\": \"2015-01-21T00:43:15+0000\",\r\n \"updated_at\": \"2015-01-21T00:43:15+0000\",\r\n \"processed\": true,\r\n \"urls\": {\r\n \"square_75\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_square_75.png\",\r\n \"thumb_100\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_thumb_100.png\",\r\n \"small_240\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_small_240.png\",\r\n \"medium_500\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_medium_500.png\",\r\n \"medium_640\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_medium_640.png\",\r\n \"large_1024\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_large_1024.png\",\r\n \"original\": \"https://s3-us-west-1.amazonaws.com/storage.cloud.appcelerator.com/YcweobYn6Sgx1gcZaxx8UdwPpkzF2r3c/photos/45/dd/54bef623c069eb7fa500b559/testImage_original.png\"\r\n },\r\n \"content_type\": \"image/png\",\r\n.\r\n.\r\n.\r\n{code}", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-21T00:50:08.000+0000", "updated": "2015-01-21T00:51:02.000+0000" }, { "id": "340060", "author": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's worked. Thanks very much Wei Kong", "updateAuthor": { "name": "neemo", "key": "neemo", "displayName": "Rodrigo Rosalin Alves Ferreira", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-21T01:02:42.000+0000", "updated": "2015-01-21T01:02:42.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }