{ "id": "132786", "key": "ALOY-1080", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-23T15:06:46.000+0000", "created": "2014-07-09T13:49:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-manualtest" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15759", "description": "Alloy 1.3.1", "name": "Alloy 1.3.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2014-09-14T21:08:56.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": "If the {{dataCollection}} attribute is set on the ListView, as shown below, the Alloy compiler fails with the message that the ItemTemplate must have a name attribute (which it does in the example).\r\n\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nMoving the {{dataCollection}} attribute to the ListSection tag resolves the issue.\r\n\r\nThis might be primarily a documentation issue -- that the list section is what you bind to your collection. However, the error message should be more meaningful and accurate.", "attachment": [ { "id": "49564", "filename": "Screen Shot 2014-07-09 at 9.19.59 AM.png", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-07-09T13:49:05.000+0000", "size": 91600, "mimeType": "image/png" } ], "flagged": false, "summary": "Compiler fails with misleading message when dataCollection set on ListView rather than ListSection", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 159, "state": "closed", "name": "2014 Sprint 15 Alloy", "startDate": "2014-07-21T15:07:15.114Z", "endDate": "2014-08-04T15:07:00.000Z", "completeDate": "2014-08-02T18:09:47.110Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "315236", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/490\r\nTest app: https://github.com/feons/alloy/tree/ALOY-1080/test/apps/testing/ALOY-1080\r\n\r\nFunctional Test:\r\n\r\nRun the test app, Alloy compilation should fail with an error message identify the problem that {{dataCollection}} attribute is set on ListView.\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-07-22T08:39:56.000+0000", "updated": "2014-07-22T08:39:56.000+0000" }, { "id": "315475", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-07-23T15:06:46.000+0000", "updated": "2014-07-23T15:06:46.000+0000" }, { "id": "323542", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Error received using the sample code is:\r\n\r\n{code}\r\n[INFO] : ----- MVC GENERATION -----\r\n[INFO] : [global style] writing to cache...\r\n[INFO] : [models/fruits.js] model processing...\r\n[INFO] : [index.xml] view processing...\r\n[INFO] : style: \"index.tss\"\r\n[INFO] : view: \"index.xml\"\r\n[ERROR] : Error with at line 4\r\n[ERROR] : 'dataCollection' attribute should be set on .\r\n[ERROR] : Alloy compiler failed\r\n{code}\r\n\r\nTiSDK 3.4.0.v20140913174915 \r\nAppcelerator Studio 3.4.0.201409131030\r\nCLI 3.4.0-rc3\r\nAlloy 1.5.0-rc2\r\nXcode6 GM\r\n\r\nClosing", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-14T21:05:13.000+0000", "updated": "2014-09-14T21:05:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }