{ "id": "171151", "key": "AC-5609", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-02-22T13:55:09.000+0000", "created": "2018-02-21T10:45:24.000+0000", "labels": [ "android", "calendar" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-02-22T13:55:09.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": "All events returned from Ti.Calendar.Calendar.getEventsBetweenDates have the same id. This makes it impossible to handle a click event and let users edit this event in the calendar app. The events returned from a call to Ti.Calendar.Calendar.getEventsInDate have the correct id's.", "attachment": [], "flagged": false, "summary": "Android: All events in Ti.Calendar.Calendar.getEventsBetweenDates have the same id", "creator": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 7.0.2.GA\r\nMac OS High Sierra, 64bit\r\nNode 8.9.1\r\nAndroid", "comment": { "comments": [ { "id": "434736", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide a sample reproducible code that regenerates the issue. Also, provide a list of steps to follow for successful regeneration. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-21T21:34:44.000+0000", "updated": "2018-02-21T21:34:44.000+0000" }, { "id": "434753", "author": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "body": "{code:javascript}\r\nvar calendarId = 1;\r\n// Run this code on Android\r\n// Of course set a correct calendar id and make sure you have some events in it :-)\r\nvar calendar = Ti.Calendar.getCalendarById(calendarId);\r\nvar now = new Date();\r\nvar events = calendar.getEventsBetweenDates(\r\n new Date(now.getFullYear(), now.getMonth(), now.getDate()),\r\n new Date(now.getFullYear() + 1, now.getMonth(), now.getDate()));\r\nevents.forEach(function(event) {\r\n console.log(event.id);\r\n});\r\n{code}", "updateAuthor": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-22T07:33:41.000+0000", "updated": "2018-02-22T07:33:41.000+0000" }, { "id": "434764", "author": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sorry to waste your time: this is caused by the fact that the events I saw where repeated events, so I guess that's the reason they all have the same id. So this can be closed.", "updateAuthor": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-22T13:10:43.000+0000", "updated": "2018-02-22T13:10:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }