{ "id": "98712", "key": "ALOY-159", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-06T09:27:03.000+0000", "created": "2012-08-06T07:47:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:25:56.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "The code for assigning the parent controller in controllers is hidden. To give developers access to change the parent controller, they should be able to use the tag attribute \"parentController\" to assign a parent. \"BaseController\" should be used by default. This attribute should be optional.\r\n\r\nh4. index.xml\r\n{code:xml}\r\n\r\n \r\n\r\n{code}\r\n\r\nh4. index.js (generated section, not done by developer)\r\n{code:javascript}\r\nfunction Controller() {\r\n Alloy.getController('MyController').call(this);\r\n var $ = this;\r\n // the rest of the view and controller code\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Assign controller inheritance from markup via \"parentController\"", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }