{ "id": "151894", "key": "ALOY-1316", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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-06-21T21:56:44.000+0000", "created": "2015-10-09T11:54:36.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2019-06-21T21:56:44.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": "We now support using {{$.args}} in XML {{if=$.args.foo}} attributes. However, it would be very useful if you could use it as value of any attribute, as well as value in TSS.\r\n\r\nThe following should then result in a Window containing a label that says _bar_:\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*foo.xml*\r\n{code:xml}\r\n\r\n\t\r\n{code}\r\n\r\nCurrently this compiles to:\r\n\r\n{code:javascript}\r\n $.__views.foo = Ti.UI.createLabel({\r\n text: \"$.args.foo\",\r\n id: \"foo\"\r\n });\r\n{code}\r\n\r\nIf you try to use {{$.args.foo}} in TSS it will fail to compile with:\r\n\r\n{code}\r\n[ERROR] Expected \"Alloy\", \"L\", \"Ti\", \"Titanium\", \"WPATH\", \"[\", \"false\", \"null\", \"true\", \"undefined\", \"{\", comment, end of line, number, string or whitespace but \"$\" found.\r\n{code}", "attachment": [], "flagged": false, "summary": "Support use of $.args.* in any XML attribute or TSS property", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "closedSprints": [ { "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": "435370", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/885", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2018-03-08T00:14:00.000+0000", "updated": "2018-03-08T00:14:00.000+0000" }, { "id": "448894", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Reopening as this was resolved incorrectly", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-06-06T09:32:52.000+0000", "updated": "2019-06-06T09:32:52.000+0000" }, { "id": "449274", "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\nClosing.\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-21T21:56:27.000+0000", "updated": "2019-06-21T21:56:27.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }