{ "id": "97735", "key": "ALOY-118", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-23T06:40:39.000+0000", "created": "2012-07-20T15:53:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:25:42.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": "/usr/local/lib/node_modules/alloy/Alloy/commands/generate/targets/migration.js:12\r\nPath = path.join(__dirname,'..','..','..','template','migration.' + CONST.FILE\r\n ^\r\nReferenceError: CONST is not defined\r\n at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/generate/targets/migration.js:12:82)\r\n at generate (/usr/local/lib/node_modules/alloy/Alloy/commands/generate/index.js:30:34)\r\n at Object. (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:99:45)\r\n at Module._compile (module.js:449:26)\r\n at Object.Module._extensions..js (module.js:467:10)\r\n at Module.load (module.js:356:32)\r\n at Function.Module._load (module.js:312:12)\r\n at Module.require (module.js:362:17)\r\n at require (module.js:378:17)\r\n at Object. (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)\r\nrmcmahonMBP:test7 rmcmahon$ \r\n", "attachment": [], "flagged": false, "summary": "alloy generate migration is crashing", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "208854", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "constants and templates resolved and tested", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-23T06:40:39.000+0000", "updated": "2012-07-23T06:40:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }