{ "id": "98450", "key": "ALOY-157", "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": "14081", "description": "", "name": "2012 Sprint 16", "archived": true, "released": false }, { "id": "14176", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": false, "released": true, "releaseDate": "2012-12-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-07T06:53:16.000+0000", "created": "2012-07-31T13:33:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19658", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "98387", "key": "ALOY-152", "fields": { "summary": "Add an Include and Require element see description", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-07T22:25:44.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": "For example:\r\n\r\nh4. myview.xml\r\n{code:xml}\r\n\r\n \r\n \r\n\r\n{code}\r\n\r\nCurrently, if these view is required in the markup, or code, it will attach only the first top-level view to the parent hierarchy.\r\n\r\nh4. index.xml\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nWould roughly translate to \r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nWe instead want it to return all elements as part of the view hierarchy\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nThis will require changes in the View/Widget require parsers, and will also change how the getRoot() function works.", "attachment": [], "flagged": false, "summary": "All top-level elements in a required view should be added its parent's view hierarchy", "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": [ { "id": "213100", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "All required views and widgets will return all top level elements to their parent, not just the first top level element now. This also helped flush out a bug where the view hierarchy wasn't established correctly if the only thing inside of a required view was other required views.\r\n\r\nA brief synopsis of the BaseController changes to facilitate this:\r\n* *getRoot()* remains the same and will return the first top level element. Useful as in most cases only one element is desired, even though the elements are now stored as an array.\r\n* *getRoots()* now returns the full array of top level elements belonging to a controler\r\n* *addRoot()* will add a new top level element to a controller's collection. This will likely never be used by developers and is currently only used by Alloy when establishing view hierarchy from markup. Eventually this may prove useful to developers if we further separate the controller lifecycle ", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T06:53:16.000+0000", "updated": "2012-08-07T06:53:16.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }