{ "id": "170921", "key": "TIMOB-25701", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-02-21T19:17:09.000+0000", "created": "2018-01-24T14:28:03.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alloy", "globals", "javascript", "promise", "titanium" ], "versions": [], "issuelinks": [ { "id": "58122", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "166898", "key": "TIMOB-24549", "fields": { "summary": "TiAPI: Add support for Promises", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": null, "updated": "2020-01-28T15:23:01.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "As a developer,\r\nI want to be able to use libraries that depend on JavaScript Promises,\r\nSo that I can have out-0f-box support for a wider range of modules.\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises\r\n\r\nI have been using JavaScript promises in my code for years but the only way to use modules that depend on Promises is to add support myself. It would be great if Titanium added built-in support for Promises.\r\n\r\nI think it would be a relatively small change. Just add bluebird (http://bluebirdjs.com/docs/getting-started.html) and add a global variable \"Promise\". \r\n\r\nLet me know if you have any questions. Thanks!", "attachment": [], "flagged": false, "summary": "Add support for promises to Titanium and Alloy", "creator": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "434711", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Available in 7.1.0 and later as part of the ES6+ support. No additional libraries required anymore. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-21T19:16:57.000+0000", "updated": "2018-02-21T19:16:57.000+0000" }, { "id": "439893", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closed as completed. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:34:56.000+0000", "updated": "2018-08-06T17:34:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }