{ "id": "134016", "key": "AC-1592", "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-08-15T16:28:25.000+0000", "created": "2014-08-01T03:39:29.000+0000", "labels": [ "TCSupportTriage", "qe-3.3.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:38:04.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": "14545", "name": "Documentation" } ], "description": "{code:Javascript}\r\nCloud.Chats.getChatGroups(function (e) {\r\n if (e.success) {\r\n for (var i = 0; i < e.chat_groups.length; i++) {\r\n var group = e.chat_groups[i];\r\n alert('Success:\\n' +\r\n 'id: ' + group.id + '\\n' +\r\n 'created_at: ' + group.created_at + '\\n' +\r\n 'number of users: ' + group.participate_users.length);\r\n }\r\n } else {\r\n alert('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n});\r\n{code}\r\n\r\nReturns All Chat Groups on ACS (even the ones the Current User is not Involved in).\r\n\r\nThe Documentation states: \"This example requests a lists of chat groups *that the current user belongs to* and checks the response.\"\r\n\r\nAlso a Q&A thread was open a month ago concerning this: http://developer.appcelerator.com/question/157777/acs---get-chat-groups-permissions-bug\r\n", "attachment": [], "flagged": false, "summary": "ACS - Cloud.Chats.getChatGroups gets All ChatGroups on ACS Server", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": "Ti SDK 3.3.0.GA", "comment": { "comments": [ { "id": "317799", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "There are two open Q&As that refer to this as well:\r\n\r\nhttp://developer.appcelerator.com/question/157777/acs---get-chat-groups-permissions-bug\r\n\r\nhttp://developer.appcelerator.com/question/175963/get-chat-group---shows-everyone-not-just-one-logged-in-user-is-in", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2014-08-08T23:17:18.000+0000", "updated": "2014-08-08T23:17:18.000+0000" }, { "id": "318822", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "You can Close this Ticket. Wei has fixed the issue :)", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2014-08-15T13:39:20.000+0000", "updated": "2014-08-15T13:39:20.000+0000" }, { "id": "318857", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Fixed by the Cloud team. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-15T16:28:25.000+0000", "updated": "2014-08-15T16:28:25.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }