{
"id": "101530",
"key": "ALOY-284",
"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": "14771",
"description": "Alloy 0.3.5",
"name": "Alloy 0.3.5",
"archived": false,
"released": true,
"releaseDate": "2013-01-18"
},
{
"id": "14871",
"description": "2013 Sprint 02",
"name": "2013 Sprint 02",
"archived": true,
"released": true,
"releaseDate": "2013-01-28"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2013-01-08T16:56:33.000+0000",
"created": "2012-09-19T14:23:49.000+0000",
"priority": {
"name": "Medium",
"id": "3"
},
"labels": [
"notable"
],
"versions": [
{
"id": "14171",
"description": "",
"name": "2012 Sprint 19",
"archived": true,
"released": true,
"releaseDate": "2012-09-24"
}
],
"issuelinks": [
{
"id": "23231",
"type": {
"id": "10020",
"name": "Depends",
"inward": "is dependent of",
"outward": "depends on"
},
"outwardIssue": {
"id": "105767",
"key": "ALOY-408",
"fields": {
"summary": "Create special notation for js, constants, etc... in XML attributes of views",
"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": "2",
"description": "A new feature of the product, which has yet to be developed.",
"name": "New Feature",
"subtask": false
}
}
}
}
],
"assignee": null,
"updated": "2018-03-07T22:25:49.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": "Currently, the property attributes in the view XML markup do not accept the Titanium SDK constants. For instance, the label will not appear if using:\r\n\r\n\r\n\r\nThis works fine in the TSS and controller code.\r\n\r\nSide note: On iOS, using the value of the constant works for 'width' but not 'textAlign', that is, setting width='FILL' works but not textAlign='1'. This fails on Android.",
"attachment": [],
"flagged": false,
"summary": "Accept Titanium SDK constants in the XML markup",
"creator": {
"name": "bhatfield",
"key": "bhatfield",
"displayName": "Benjamin Hatfield",
"active": false,
"timeZone": "America/Los_Angeles"
},
"subtasks": [],
"reporter": {
"name": "bhatfield",
"key": "bhatfield",
"displayName": "Benjamin Hatfield",
"active": false,
"timeZone": "America/Los_Angeles"
},
"environment": "Alloy v0.2.32\r\nTitanium SDK 2.1.2.GA\r\niOS SDK v5.1\r\nAndroid API Level 8 / v2.2",
"comment": {
"comments": [
{
"id": "219920",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "The core of the issue is that XML attributes are strings. They have no sense of type. So the default behavior when using the XML attributes is that the value is treated as a string. So right now, when you put the name of a Ti constant in an attribute, the generated code sees {{\"Ti.UI.TEXT_ALIGNMENT_CENTER\"}}, not {{Ti.UI.TEXT_ALIGNMENT_CENTER}}.\r\n\r\nI will get Ti constants, Alloy.CFG values, and L() localizations working in XML attributes, but further handling of specific types will require mappings from API property names to the expected type, so conversions can be performed. One such conversion like this already exists. Check out the parser for Ti.Map.Annotation which converts the XML attribute strings for latitude and longitude to floats: https://github.com/appcelerator/alloy/blob/master/Alloy/commands/compile/parsers/Ti.Map.Annotation.js ",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2012-09-20T06:45:21.000+0000",
"updated": "2012-09-20T06:45:21.000+0000"
},
{
"id": "221629",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Moving this to after 3.0.0. Rather than do a partial fix here, we'll save it until we can actually implement a fully dynamic syntax for the xml attributes. Something along the lines of:\n\n{code:xml}\n\n \n{code}",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2012-10-01T20:15:52.000+0000",
"updated": "2012-10-01T20:15:52.000+0000"
},
{
"id": "233633",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "The {} syntax is being used for binding. Titanium constants will be made usable as the original description requests.",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-01-08T16:34:57.000+0000",
"updated": "2013-01-08T16:34:57.000+0000"
}
],
"maxResults": 3,
"total": 3,
"startAt": 0
}
}
}