{
"id": "135102",
"key": "ALOY-1240",
"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": "7",
"description": "",
"name": "Invalid"
},
"resolutiondate": "2015-10-21T23:46:43.000+0000",
"created": "2014-08-21T09:15:19.000+0000",
"priority": {
"name": "Medium",
"id": "3"
},
"labels": [],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "fmiao",
"key": "fmiao",
"displayName": "Feon Sua Xin Miao",
"active": true,
"timeZone": "America/Vancouver"
},
"updated": "2018-03-07T22:28:26.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": "13603",
"name": "Styling",
"description": "TSS, dynamic styling, styling API"
},
{
"id": "13604",
"name": "Tooling",
"description": "Items related to Alloy tooling and workflow"
}
],
"description": "views/index.xml contains:\r\n{code}\r\n\r\n{code}\r\n\r\nstyles/index.tss contains:\r\n{code}\r\n\"Picker\":{\r\n\twidth:Titanium.UI.FILL,\r\n\theight:Titanium.UI.SIZE,\r\n\tselectionIndicator:\"true\",\r\n\tuseSpinner:\"true\",\r\n}\r\n\".datePicker\":{\r\n\tminDate:Alloy.CFG.minDate,\r\n\tmaxDate:Alloy.CFG.maxDate,\r\n}\r\n{code}\r\n\r\nResult: Date picker shows as expected.\r\n\r\nHowever, when the type definition is moved into the .tss (usual case):\r\n\r\nviews/index.xml contains:\r\n{code}\r\n\r\n{code}\r\n\r\nstyles/index.tss contains:\r\n{code}\r\n\"Picker\":{\r\n\twidth:Titanium.UI.FILL,\r\n\theight:Titanium.UI.SIZE,\r\n\tselectionIndicator:\"true\",\r\n\tuseSpinner:\"true\",\r\n}\r\n\".datePicker\":{\r\n\ttype:\"Titanium.UI.PICKER_TYPE_DATE\",\r\n\tminDate:Alloy.CFG.minDate,\r\n\tmaxDate:Alloy.CFG.maxDate,\r\n}\r\n{code}\r\n\r\nResult: The entire picker is not displayed at all. The class .datePicker is not defined anywhere else in index.tss. Any attempts to assign a date value to the picker results in an app crash.\r\n\r\n\r\nThis was tested on a Samsung Galaxy Note 2 LTE running Android 4.3. Project is based on the Default Alloy Project template.",
"attachment": [],
"flagged": false,
"summary": "Date picker type cannot be specified in the TSS",
"creator": {
"name": "melvinchia",
"key": "melvinchia",
"displayName": "Melvin Chia",
"active": true,
"timeZone": "Asia/Shanghai"
},
"subtasks": [],
"reporter": {
"name": "melvinchia",
"key": "melvinchia",
"displayName": "Melvin Chia",
"active": true,
"timeZone": "Asia/Shanghai"
},
"environment": "Host OS: Mac OS X\r\nOS Version: 10.9.4\r\nJRE Version: 1.6.0_65\r\nTitanium Studio Version: 3.3.0.201407100905\r\nLatest Titanium SDK: 3.3.0.GA\r\nTitanium SDK Version: 3.3.0.GA\r\nAndroid SDK Version: 4.4.2\r\nAndroid NDK Version: r9d (64-bit)\r\nNode.JS Version: v0.10.30\r\nNPM Version: 1.4.21\r\n\r\nMobile Phone: Samsung Galaxy Note 2 LTE\r\nMobile Phone OS: Android 4.3",
"comment": {
"comments": [
{
"id": "367462",
"author": {
"name": "fmiao",
"key": "fmiao",
"displayName": "Feon Sua Xin Miao",
"active": true,
"timeZone": "America/Vancouver"
},
"body": "It should be {{type:Titanium.UI.PICKER_TYPE_DATE}} not {{type:\"Titanium.UI.PICKER_TYPE_DATE\"}}\r\n{code}\r\n\".datePicker\":{\r\n\ttype:Titanium.UI.PICKER_TYPE_DATE,\r\n\tminDate:Alloy.CFG.minDate,\r\n\tmaxDate:Alloy.CFG.maxDate,\r\n}\r\n{code}",
"updateAuthor": {
"name": "fmiao",
"key": "fmiao",
"displayName": "Feon Sua Xin Miao",
"active": true,
"timeZone": "America/Vancouver"
},
"created": "2015-10-21T22:28:29.000+0000",
"updated": "2015-10-21T22:28:29.000+0000"
},
{
"id": "435339",
"author": {
"name": "emerriman",
"key": "emerriman",
"displayName": "Eric Merriman ",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Closing as invalid. If this is incorrect, please reopen.",
"updateAuthor": {
"name": "emerriman",
"key": "emerriman",
"displayName": "Eric Merriman ",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-03-07T22:28:26.000+0000",
"updated": "2018-03-07T22:28:26.000+0000"
}
],
"maxResults": 2,
"total": 2,
"startAt": 0
}
}
}