{ "id": "132233", "key": "AC-1281", "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": "2014-06-26T09:35:56.000+0000", "created": "2014-06-25T16:54:27.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:40.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": [], "description": "when I run the query \r\n\r\nACS.Events.query({\r\n\t\tsel : JSON.stringify({\r\n\t\t\t\"all\" : [\"id\", \"name\", \"start_time\", \"place.name\", \"place.latitude\", \"place.longitude\", \"place\", \"user\", \"user.id\", \"user.username\", \"participant_0\", \"participant_1\", \"participant_2\", \"participant_3\", \"participants\"]\r\n\t\t}),\r\n\r\n....\r\n\r\nI receive place.id and place.name amongst other attributes, but no place.latitude, place.longitude. Same for user.username.\r\n\r\nthe \"sel\"-attribute seems to be entirely ignored.\r\n\r\nFull source code can be found here:\r\n\r\nhttps://github.com/treinberger/mixnmatch-server\r\ncontrollers\r\nevent.js", "attachment": [], "flagged": false, "summary": "ACS query sel not working", "creator": { "name": "reinberger", "key": "reinberger", "displayName": "Thomas Reinberger", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "reinberger", "key": "reinberger", "displayName": "Thomas Reinberger", "active": true, "timeZone": "Europe/Berlin" }, "environment": "ACS Community", "comment": { "comments": [ { "id": "311035", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nBased on your code, the right code should be\r\n{code}\r\nACS.Events.query ({\r\n sel : JSON.stringify ({ \"all\" : [\"id\", \"name\", \"start_time\", \"place\", \"latitude\", \"longitude\", \"username\", \"participant_0\", \"participant_1\", \"participant_2\", \"participant_3\", \"participants\"] }\r\n),\r\n{code}\r\n\r\nPlease read the document about query sel option. http://docs.appcelerator.com/cloud/latest/#!/guide/search_query\r\n", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-26T08:41:27.000+0000", "updated": "2014-06-26T08:41:27.000+0000" }, { "id": "311045", "author": { "name": "reinberger", "key": "reinberger", "displayName": "Thomas Reinberger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you. I read the documentation but misinterpreted it. Closed.", "updateAuthor": { "name": "reinberger", "key": "reinberger", "displayName": "Thomas Reinberger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-26T09:34:03.000+0000", "updated": "2014-06-26T09:34:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }