{
"id": "112179",
"key": "ALOY-599",
"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": [],
"resolution": {
"id": "3",
"description": "The problem is a duplicate of an existing issue.",
"name": "Duplicate"
},
"resolutiondate": "2013-04-05T11:48:54.000+0000",
"created": "2013-04-04T07:29:36.000+0000",
"priority": null,
"labels": [
"alloy",
"data-binding",
"model",
"views"
],
"versions": [],
"issuelinks": [
{
"id": "38841",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"inwardIssue": {
"id": "132691",
"key": "TISTUD-6690",
"fields": {
"summary": "Add content assist for collection/model bindings in alloy view XML",
"status": {
"description": "The issue is open and ready for the assignee to start work on it.",
"name": "Open",
"id": "1",
"statusCategory": {
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
},
"priority": {
"name": "High",
"id": "2"
},
"issuetype": {
"id": "4",
"description": "An improvement or enhancement to an existing feature or task.",
"name": "Improvement",
"subtask": false
}
}
}
},
{
"id": "27378",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"inwardIssue": {
"id": "107000",
"key": "ALOY-443",
"fields": {
"summary": "Enable more complex notation in binding",
"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": "High",
"id": "2"
},
"issuetype": {
"id": "4",
"description": "An improvement or enhancement to an existing feature or task.",
"name": "Improvement",
"subtask": false
}
}
}
}
],
"assignee": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2014-07-07T20:48:34.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": [],
"description": "Currently I can do:\r\n\r\n{code}\r\n\r\n{code}\r\n\r\nBut I can not do:\r\n\r\n{code}\r\n\r\n\r\n\r\n{code}\r\n\r\nThe first line should be easy to add, since for a label like this, the text node will be mapped to the {{text}} property anyway.\r\n\r\nThe second and third line will require something to be generated like this, using Underscore's template() method:\r\n\r\n{code}\r\nvar __alloyId2 = _.template(\"My <%- title %>\");\r\nvar __alloyId3 = Ti.UI.createLabel({\r\n text: __alloyId3({\r\n title : \"undefined\" != typeof __alloyId1.__transform[\"title\"] ? __alloyId1.__transform[\"title\"] : __alloyId1.get(\"image\")\r\n });\r\n});\r\n{code}",
"attachment": [],
"flagged": false,
"summary": "Support data binding for text nodes and multiple fields",
"creator": {
"name": "fokkezb",
"key": "fokke",
"displayName": "Fokke Zandbergen",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"subtasks": [],
"reporter": {
"name": "penrique",
"key": "penrique",
"displayName": "Pedro Enrique",
"active": false,
"timeZone": "America/Los_Angeles"
},
"environment": "Any",
"comment": {
"comments": [
{
"id": "245933",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Duplicate of ALOY-443",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-04-05T11:48:54.000+0000",
"updated": "2013-04-05T11:48:54.000+0000"
}
],
"maxResults": 1,
"total": 1,
"startAt": 0
}
}
}