{ "id": "110003", "key": "TIMOB-12815", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15097", "description": "2013 Sprint 05 BB", "name": "2013 Sprint 05 BB", "archived": true, "released": true, "releaseDate": "2013-03-11" }, { "id": "14815", "description": "2013 Sprint 05", "name": "2013 Sprint 05", "archived": true, "released": true, "releaseDate": "2013-03-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-06T02:36:54.000+0000", "created": "2013-02-21T22:37:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T00:49:07.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": "Add a BlackBerry specific property to tiapp.xml which exposes a way\r\nto set the orientation setting in the generated application manifest.\r\nThis is needed to lock the application into landscape or portrait.\r\nYou can also enable \"auto-orient\" behavior which allows using\r\nWindow.orientationModes to programmatically control what orientations\r\nare supported by your application.\r\n\r\nThe property should live in a blackberry section. For example:\r\n{code:xml}\r\n\r\n landscape\r\n\r\n{code}\r\n\r\nh3. Acceptance Test\r\n1. Create an application which opens a window.\r\n2. Add the snippet of code above into your tiapp.xml file.\r\n3. Run application. Verify the UI is only allowed in landscape orientation.\r\n4. Try changing \"landscape\" to \"portrait\" and build & run application again.\r\n5. Verify only portrait orientation is allowed.\r\n6. Try changing \"portrait\" to \"auto\". Build and run application.\r\n7. Verify all orientations (except upside portrait) is allowed.\r\n8. Remove the orientation tag in the blackberry tag. Build and run application.\r\n9. Verify only the device's default orientation is allowed (portrait for phones).\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: Add orientation property to tiapp.", "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, "comment": { "comments": [ { "id": "410176", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T00:49:07.000+0000", "updated": "2017-03-09T00:49:07.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }