{ "id": "161184", "key": "ALOY-1505", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "20671", "description": "Alloy items that will be included in CLI 7.1.0", "name": "CLI Release 7.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20836", "name": "Alloy 1.14.0", "archived": false, "released": true, "releaseDate": "2019-07-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-05T11:33:40.000+0000", "created": "2016-06-17T19:13:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy", "options", "optionsdialog" ], "versions": [], "issuelinks": [ { "id": "57271", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "173220", "key": "ALOY-1653", "fields": { "summary": "Runtime error on Android when using optiondialog and not declaring destructive or cancel properties", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2019-06-24T23:48:11.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "{quote}As a developer,\r\nI want to be able to mark an option as being the option to use for cancelling an OptionDialog in Alloy XML,\r\nSo that I can use OptionDialog in view without dependency on controller.\r\n{quote}\r\n\r\nCurrently, I can do this:\r\n\r\n{code:xml}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n{code}\r\n\r\nHowever, if an option is not displayed due to conditional code, then the index number will no longer be valid.\r\n\r\nProposed new attribute:\r\n\r\n{code:xml}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Add ability to pass cancel attribute to Option element for OptionDialog", "creator": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 1009, "state": "closed", "name": "2018 Sprint 06 Tooling", "startDate": "2018-03-11T22:22:24.159Z", "endDate": "2018-03-25T22:22:00.000Z", "completeDate": "2018-03-25T21:58:30.495Z", "originBoardId": 219 }, { "id": 1001, "state": "closed", "name": "2018 Sprint 04 Tooling", "startDate": "2018-02-12T04:25:16.870Z", "endDate": "2018-02-26T04:25:00.000Z", "completeDate": "2018-02-26T19:38:13.619Z", "originBoardId": 219 }, { "id": 1019, "state": "closed", "name": "2018 Sprint 07 Tooling", "startDate": "2018-03-25T21:58:00.558Z", "endDate": "2018-04-08T21:58:00.000Z", "completeDate": "2018-04-08T17:56:19.404Z", "originBoardId": 219 }, { "id": 1007, "state": "closed", "name": "2018 Sprint 05 Tooling", "startDate": "2018-02-25T17:48:46.503Z", "endDate": "2018-03-11T16:48:00.000Z", "completeDate": "2018-03-11T22:21:44.972Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "388592", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for creating the ticket. Out engineering team will consider it. Please share more of your thoughts on how this help out. Moving this ticket. \r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-06-17T22:40:00.000+0000", "updated": "2016-06-17T22:40:00.000+0000" }, { "id": "402276", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Any thoughts on this? Does it sound like something that could be added?", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2016-11-30T18:32:20.000+0000", "updated": "2016-11-30T18:32:20.000+0000" }, { "id": "434581", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/879", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2018-02-16T20:34:40.000+0000", "updated": "2018-02-16T20:34:40.000+0000" }, { "id": "449312", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in CLI core 7.1.0-master.22.\r\n\r\nCancel attribute can now be passed to the options element.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.1.2.201903111843\r\nSDK Ver: 8.0.2.GA\r\nOS Ver: 10.14.5\r\nXcode Ver: Xcode 10.2.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.1.0-master.22\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.2.1\r\nAlloy Ver: 1.14.0-1\r\nNode Ver: 8.15.1\r\nNPM Ver: 6.4.1\r\nJava Ver: 10.0.2\r\nDevices: ⇨ google Pixel (Android 9)\r\nIOS Simulator: ⇨ iPhone Xs (12.2)\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-24T23:48:02.000+0000", "updated": "2019-06-24T23:48:02.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }