{ "id": "162343", "key": "TIMOB-23714", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-30T02:12:17.000+0000", "created": "2016-08-02T18:22:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-30T02:13:08.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen calling Ti.Contacts.Group.members() it errors with 'Can't find variable: memberIdentifiers'.\r\n\r\n{code}\r\nTi.Contacts.requestContactsPermissions(function(e) {\r\n if (e.success) {\r\n Ti.API.info('auth request success');\r\n Ti.API.info(JSON.stringify(e));\r\n var group = Ti.Contacts.createGroup({\r\n\t\t\tname: 'My best friends'\r\n\t\t});\r\n\t\t\r\n\t\tTi.Contacts.save();\r\n\t\tconsole.log('Made group');\r\n\t\r\n\t\tvar person = Ti.Contacts.createPerson({\r\n\t\t\t\tfirstName: 'Arthur',\r\n\t\t\t\tlastName: 'Evans',\r\n\t\t\t\tphone: {\r\n\t\t\t\t\t\"work\": [\"01234566789\"]\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\tTi.Contacts.save();\r\n\t\r\n\t\tgroup.add(person);\r\n\t\tTi.Contacts.save();\t\r\n\t\tconsole.log('Added person');\r\n\t\tconsole.log('Members are');\r\n\t\tconsole.log(group.members());\r\n } else {\r\n Ti.API.info('auth request fail');\r\n Ti.API.info(e);\r\n }\r\n});\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Copy the code above to an existing app.js\r\n# Build for Windows platform\r\n\r\nh5.Actual result\r\n\r\nWhen group.members() is called the app will throw an error\r\n\r\nh5.Expected result\r\n\r\nCalling group.members() should return the members of a group", "attachment": [], "flagged": false, "summary": "Windows: Calling Ti.Contacts.Group.members() errors with 'Can't find variable: memberIdentifiers'", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 10 Pro\r\nAppc core: 5.4.0-37\r\nAppc NPM: 4.2.7\r\nTi SDK: 5.4.0.v20160801022303\r\n", "closedSprints": [ { "id": 896, "state": "closed", "name": "2017 Sprint 11 SDK", "startDate": "2017-05-22T02:41:17.888Z", "endDate": "2017-06-05T02:41:00.000Z", "completeDate": "2017-06-05T00:14:33.418Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "419263", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/994", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-08T04:47:59.000+0000", "updated": "2017-05-08T04:47:59.000+0000" }, { "id": "420111", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "FR Pass!\r\nApp no longer throws an error when calling .members(), able to loop through the returned object and access the individual contacts returned\r\n\r\n```\r\nvar win = Ti.UI.createWindow();\r\nvar button = Titanium.UI.createButton({title : 'Click'});\r\nwin.add(button);\r\nwin.open();\r\nbutton.addEventListener('click', function(e) {\r\n\tTi.Contacts.requestContactsPermissions(function(e) {\r\n\t\tif (e.success) {\r\n\t\t\tTi.API.info(JSON.stringify(e));\r\n\t\t\tvar group = Ti.Contacts.createGroup({\r\n\t\t\t\tname: 'My best friends'\r\n\t\t\t});\r\n\t\t\tTi.Contacts.save();\r\n\t\t\tvar person = Ti.Contacts.createPerson({\r\n\t\t\t\tfirstName: 'Arthur',\r\n\t\t\t\tlastName: 'Evans',\r\n\t\t\t\tphone: {\r\n\t\t\t\t\t\"work\": [\"01234566789\"]\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tTi.Contacts.save();\t\t\t\r\n\t\t\tgroup.add(person);\r\n\t\t\tTi.Contacts.save();\t\r\n\t\t\tvar m = group.members();\r\n\t\t\tconsole.log(typeof m);\r\n\t\t\tm.forEach(function(member) {\r\n\t\t\t\tconsole.log(member.firstName);\r\n\t\t\t});\t\t\t\t\r\n\t\t} else {\r\n\t\t\tTi.API.info('auth request fail');\r\n\t\t\tTi.API.info(e);\r\n\t\t}\r\n\t});\r\n});\r\n```\r\nEnvironment:\r\n\r\nMicrosoft Windows 10 Pro\r\nAppc Studio: 4.9.0.201705180402\r\nAPPC CLI: 6.2.2-master.15\r\nLumia 550 (10.0.15063)\r\n\r\nLooks like I need to get merge rights on this repo, will merge once I get them", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-22T12:25:40.000+0000", "updated": "2017-05-22T12:25:40.000+0000" }, { "id": "420581", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR & FR passed and we can close this for now.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-30T02:13:08.000+0000", "updated": "2017-05-30T02:13:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }