{ "id": "95030", "key": "TIMOB-9950", "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": "15096", "description": "2013 Sprint 04 BB", "name": "2013 Sprint 04 BB", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-21T03:50:03.000+0000", "created": "2012-07-12T11:54:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "small" ], "versions": [], "issuelinks": [ { "id": "20019", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "99459", "key": "TIMOB-10499", "fields": { "summary": "BlackBerry: Support setting properties from tiapp.xml", "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": "Medium", "id": "3" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "19644", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "98646", "key": "TIMOB-10307", "fields": { "summary": "BlackBerry: Add support of javascript implementation of parts of the Ti API", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T00:46:32.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": "Currently, include()'s method of doing relative files only works if all done in successive order. It does not work for windows with a url (not implemented) or if include is used in a function of a file in a subdir.\r\nAlso, require() does not have any method right now.\r\n\r\nMy proposal is to store the filepath in each TiObject so it can be retrieved later when needed.\r\n\r\nAlso, we need to make sure that require() properly handles a \"native Titanium module\" by its ID (eg com.example.module).", "attachment": [], "flagged": false, "summary": "BlackBerry: Fix/implement relative include/require", "creator": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "214827", "author": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I may have come across some potential solutions to this, but it would need to be verified if it works: http://stackoverflow.com/questions/10040604/how-to-get-scripts-origin-filename-in-v8\r\n{noformat}\r\nargs.Callee()->GetScriptOrigin().ResourceName()\r\nor\r\nStackTrace::CurrentStackTrace(1, StackTrace::kScriptName)->GetFrame(0)->GetScriptName()\r\n{noformat}\r\n\r\nAlso need to fix this for image urls", "updateAuthor": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T12:09:24.000+0000", "updated": "2012-08-16T12:09:24.000+0000" }, { "id": "410171", "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:46:32.000+0000", "updated": "2017-03-09T00:46:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }