{ "id": "115273", "key": "ALOY-683", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" }, { "id": "15816", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-01-20T21:31:57.000+0000", "created": "2013-05-31T13:06:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "alloy", "config" ], "versions": [], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-01-28T23:55:19.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": [], "attachment": [], "flagged": false, "summary": "CFG.js not being regenerated with changes to config.json", "creator": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "environment": "Alloy 1.2.0\r\nSDK 3.1.0GA\r\nOSX 10.8\r\niOS 6.1", "comment": { "comments": [ { "id": "288880", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "This is working fine with Alloy 1.3 and Titanium 3.2.0.GA\r\n\r\nTest procedure\r\n\r\n 1. Create a new Alloy app\r\n 2. To app/controllers/index.js, add\r\n{code}\r\nTi.API.info('Alloy.CFG.foo = ' + Alloy.CFG.foo);\r\n{code}\r\n 3. Update app/config.json to read:\r\n\r\n{code}\r\n{\r\n \"global\": {\"foo\": \"bar\"}, \r\n \"env:development\": {}, \r\n \"env:test\": {}, \r\n \"env:production\": {}, \r\n \"os:android\": {},\r\n \"os:blackberry\": {},\r\n \"os:ios\": {},\r\n \"os:mobileweb\": {},\r\n \"dependencies\": {}\r\n}\r\n{code}\r\n\r\n 4. Build app. Logging message is `[INFO] : Alloy.CFG.foo = bar` and contents of Resources/CFG.js is `module.exports={\"dependencies\":{},\"foo\":\"bar\"};`\r\n 5. Modify config.json, setting foo equal to `Darth Vader`.\r\n 6. Build app. Logging message is `[INFO] : Alloy.CFG.foo = Darth Vader` and contents of Resources/CFG.js is `module.exports={\"dependencies\":{},\"foo\":\"Darth Vader\"};`\r\n \r\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-20T21:31:57.000+0000", "updated": "2014-01-20T21:31:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }