{ "id": "109085", "key": "AC-3237", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-02-07T01:27:15.000+0000", "created": "2013-02-04T10:13:12.000+0000", "labels": [ "alloy", "assets", "directory" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:38.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I created an Alloy widget (right click > New > Alloy Widget). Then under assets I created a subfolder called categories then a subfolder called error so it looks like ASSETS > CATEGORIES > ERROR. I was trying to access a file in the error directory called error.png but it kept coming up blank. So I looked in the resources directory and the directory structure seemed backwards. See the image attached. It was essentially RESOURCES > CATEGORIES > ERROR > COM.[widget name] > error.png\r\n\r\nIt's a little counterintuitive. Could each widget not have their own directory structure instead of sharing?", "attachment": [ { "id": "35264", "filename": "folderstructure.tiff", "author": { "name": "senica", "key": "senica", "displayName": "Senica Gonzalez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T10:13:12.000+0000", "size": 32074, "mimeType": "image/tiff" } ], "flagged": false, "summary": "Alloy widget assets directory structure seems reversed...a little counterintuitive.", "creator": { "name": "senica", "key": "senica", "displayName": "Senica Gonzalez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "senica", "key": "senica", "displayName": "Senica Gonzalez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX, Alloy 0.3.6, Titanium Studio, build: 3.0.1.201212181159", "comment": { "comments": [ { "id": "237583", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The reason it is structured in this manner is so that you can take advantage of Titanium's platform-specific folders. If they are structured in this way, you can easily make use of the android, iphone, and mobileweb folders with a widget while still preventing the chance of filename collisions.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T01:27:15.000+0000", "updated": "2013-02-07T01:27:15.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }