{ "id": "147990", "key": "TIMOB-18926", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" }, { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-30T02:44:01.000+0000", "created": "2015-05-20T01:23:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "calendar", "event", "status" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-01-14T22:56:36.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Reproduce:\r\n1. Simple run the following codes.\r\n{code:title=app.js}\r\nTi.API.info(Ti.Calendar.STATUS_TENTATIVE);\r\nTi.API.info(Ti.Calendar.STATUS_CONFIRMED);\r\nTi.API.info(Ti.Calendar.STATUS_CANCELLED);\r\nTi.API.info(Ti.Calendar.STATUS_NONE);\r\n{code}\r\n\r\nh5.Expect Result:\r\nIt should show different status numbers\r\n\r\nh5.Actual Result:\r\nThe status numbers are wrong. Like this:\r\n{code}\r\n[INFO] : 0\r\n[INFO] : 1\r\n[INFO] : \r\n[INFO] : 0\r\n{code}\r\n\r\nh5.Note:\r\nCan be reproduce on SDK 3.5.1, 3.5.2 and 4.0.0RC2", "attachment": [], "flagged": false, "summary": "iOS: Calendar events status shows wrong status number or null", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": null, "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 }, { "id": 464, "state": "closed", "name": "2015 Sprint 17 SDK", "startDate": "2015-08-15T00:30:59.243Z", "endDate": "2015-08-29T00:30:00.000Z", "completeDate": "2015-08-31T08:10:47.969Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "354275", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6890", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-03T21:15:26.000+0000", "updated": "2015-06-03T21:15:26.000+0000" }, { "id": "354315", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-04T04:21:54.000+0000", "updated": "2015-06-04T04:21:54.000+0000" }, { "id": "357203", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening.\r\nIssue still occurs. Sample code will return: {{0, 1, 0, 0}}.\r\n\r\nRequired changes:\r\nLines 280-283 of iphone/Classes/CalendarModule.m should be:\r\n{code}\r\nMAKE_SYSTEM_PROP(STATUS_NONE,EKEventStatusNone);\r\nMAKE_SYSTEM_PROP(STATUS_CONFIRMED,EKEventStatusConfirmed);\r\nMAKE_SYSTEM_PROP(STATUS_TENTATIVE,EKEventStatusTentative);\r\nMAKE_SYSTEM_PROP(STATUS_CANCELLED,EKEventStatusCanceled);\r\n{code}\r\n\r\nThis will have the sample code return: {{2, 1, 3, 0}}, as expected.\r\n\r\n[~penrique] Please look into this. Should be quick.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-07T21:17:09.000+0000", "updated": "2015-07-07T21:17:42.000+0000" }, { "id": "360128", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Actually, the changed property {{STATUS_CANCELLED}} should be {{STATUS_CANCELED}} again, since Apple uses the american grammatical style, not the british/canadian/australian spelling. But thats another thing. \r\n\r\nPR to fix the constants can be found here: https://github.com/appcelerator/titanium_mobile/pull/7039", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-17T23:42:55.000+0000", "updated": "2015-08-17T23:43:23.000+0000" }, { "id": "360140", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR MERGED.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-18T01:18:21.000+0000", "updated": "2015-08-18T01:18:21.000+0000" }, { "id": "362008", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified the Ti.Calendar status constants return correct numbers: {{2, 1, 3, 0}}.\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.2.0-1\r\nAppc CLI Core: 5.0.0-33\r\nArrow: 1.2.52\r\nSDK: 5.0.0.v20150901105514\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.5)\r\nXcode: 7 beta 6\r\nDevice: iphone 6 (8.4.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-01T23:19:23.000+0000", "updated": "2015-09-01T23:19:23.000+0000" }, { "id": "371617", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR here to fix spelling of constant: https://github.com/appcelerator/titanium_mobile/pull/7509", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-30T02:04:40.000+0000", "updated": "2015-11-30T02:04:40.000+0000" }, { "id": "371621", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR merged for 5.2.0.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-30T02:43:18.000+0000", "updated": "2015-11-30T02:43:18.000+0000" }, { "id": "374621", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.2 (15C50)\r\nStudio 4.4.0.201511241829\r\nTi SDK 5.2.0.v20160114021251\r\nAppc NPM 4.2.2\r\nAppc CLI 5.2.0-224\r\nXcode 7.2 (7C68)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\n\r\nSTATUS_CANCELLED is now deprecated in favor of STATUS_CANCELED. A warning message indicates so and both will return the correct property (until STATUS_CANCELLED is removed).", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-14T22:56:36.000+0000", "updated": "2016-01-14T22:56:36.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }