{ "id": "165018", "key": "AC-4674", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-12-27T18:06:21.000+0000", "created": "2016-12-14T17:43:21.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-27T18:06:21.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When retrieving the calendar events, the calendar events seem to have IDs that are small integers. For example, one event has an ID of \"62\". This seemed odd when comparing it to previous IDs found to be retrieved from Android.\r\n\r\nI am wondering if there are some missing values that are not being exposed in Titanium's implementation of the newer versions of Android.\r\n\r\nCurrently, our \"hacky\" fix for this has been to take the Ti.Calendar.Event.id value, and concatenate it to an ISO-8601 version of the start date. That has given us a somewhat-unique ID for the event. This makes me uncomfortable, so I wanted to have a properly-implemented way of accessing a unique ID.", "attachment": [], "flagged": false, "summary": "Android: The Ti.Calendar.Event.id property value seems incorrect", "creator": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "subtasks": [], "reporter": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "environment": null, "comment": { "comments": [ { "id": "403454", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Share a sample code to test the issue. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-15T20:48:19.000+0000", "updated": "2016-12-15T20:48:19.000+0000" }, { "id": "403459", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Sample:\r\n\r\n{code:java}\r\n// rawDeviceCalendarEvent is an instance of Ti.Calendar.Event\r\n\r\nvar currentEventData = {\r\n id: rawDeviceCalendarEvent.getId(),\r\n title: rawDeviceCalendarEvent.getTitle(),\r\n location: rawDeviceCalendarEvent.getLocation(),\r\n description: itemDescription\r\n };\r\n\r\nTi.API.log(currentEventData.id); // This will output a small number for an ID on Android as mentioned in the description above.\r\n{code}\r\n", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-12-15T23:24:56.000+0000", "updated": "2016-12-15T23:24:56.000+0000" }, { "id": "403731", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you send a full reproducible code for us to test? We need to regenerate the issue before our engineer's can look into it. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-21T14:49:02.000+0000", "updated": "2016-12-21T14:49:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }