{ "id": "104287", "key": "TIMOB-11639", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14374", "description": "", "name": "BB Preview 3", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-12T20:33:08.000+0000", "created": "2012-11-01T21:20:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "22752", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "104797", "key": "TIMOB-11737", "fields": { "summary": "BB:Ti.UI.Window open event does not trigger", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "22751", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "104803", "key": "TIMOB-11742", "fields": { "summary": "BB: Ti.UI.Window close() does not work", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T18:26:57.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "As a developer, I need the ability to create windows and present\r\nthem onto a scene so that they can be positioned, sized, and drawn\r\nonto the display.\r\n", "attachment": [], "flagged": false, "summary": "Blackberry: Window Management", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 4, "state": "closed", "name": "2012 Sprint 23", "startDate": "2012-11-07T23:26:41.373Z", "endDate": "2012-11-20T01:59:00.000Z", "completeDate": "2012-11-21T02:58:23.801Z" } ], "comment": { "comments": [ { "id": "227053", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. Acceptance Test\n\n1. Run application.\n2. A series of windows should open. First blue, then red, and finally green.\n3. For each window as they open the following events should fire in order:\n \"open\", \"focus\", \"blur\" (last window to open should remain focused)\n4. Once all windows are open they should begin to close. First green, then red, and finally blue.\n5. For each window as they close the following events should fire in order:\n \"focus\" (exclude first window which is focused already), \"blur\", \"close\"\n\n{code:javascript}\nvar colors = ['blue', 'red', 'green'],\n windows = [];\n\nfunction openNextWindow() {\n\tTi.API.info('opening next...');\n\n\tvar color = colors.pop();\n\tif (!color) {\n\t\tclearInterval(interval);\n\t\tinterval = setInterval(closeNextWindow, 2000);\n\t\treturn;\n\t}\n\n\tvar win = Ti.UI.createWindow();\n\n\twin.addEventListener('open', function() {\n\t\tTi.API.info(color + ' window opened');\n\t});\n\twin.addEventListener('focus', function() {\n\t\tTi.API.info(color + ' window focused');\n\t});\n\twin.addEventListener('blur', function() {\n\t\tTi.API.info(color + ' window blurred');\n\t});\n\twin.addEventListener('close', function() {\n\t\tTi.API.info(color + ' window closed');\n\t});\n\n\twin.add(Ti.UI.createView({backgroundColor: color, width: 500, height: 500}));\n\twin.open();\n\twindows.push(win);\n}\n\nfunction closeNextWindow() {\n\tTi.API.info('closing next...');\n\n\tvar win = windows.pop();\n\tif (!win) {\n\t\tclearInterval(interval);\n\t\treturn;\n\t}\n\n\twin.close();\n}\n\nvar interval = setInterval(openNextWindow, 2000);\n{code}", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T20:32:50.000+0000", "updated": "2012-11-12T20:32:50.000+0000" }, { "id": "409899", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as resolved.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T18:26:57.000+0000", "updated": "2017-03-08T18:26:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }