{ "id": "140083", "key": "AC-690", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2014-11-20T10:55:36.000+0000", "labels": [ "acs" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-02-29T07:19:01.000+0000", "status": { "description": "This issue is being actively worked on at the moment by the assignee.", "name": "In Progress", "id": "3", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "components": [], "description": "When you try to associate any Custom object with a PhotoCollection, ACs throws an error. E.g.:\r\n\r\n{code}\r\nCloud.Objects.create({\r\n classname: 'Albums',\r\n fields: {\r\n // TODO: \"Error: Invalid ACS Type: photocollection\"\r\n name: \"myname\",\r\n \"[ACS_PhotoCollection]photocollection_id\": photocollection_id\r\n }\r\n}, function (e) {\r\n //\r\n});\r\n{code}\r\n\r\nI've tried with [ACS_PhotoCollection], [ACS_PhotoCollections], [ACS_Collection] and [ACS_Collections], all with error.\r\n\r\nWe need a way to link an object to a collection, so we can retrieve the cover picture and show it in a list of Albums, for example.\r\n\r\nThis problem seems to be old: https://developer.appcelerator.com/question/155074/acs-photocollection-search-show-and-relational-fields", "attachment": [], "flagged": false, "summary": "PhotoCollections not \"relationable\" with relations", "creator": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "subtasks": [], "reporter": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "environment": "Ti 3.4.0\r\nNode ACS 10.13", "comment": { "comments": [ { "id": "333196", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-21T10:27:03.000+0000", "updated": "2014-11-21T10:27:03.000+0000" }, { "id": "333199", "author": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "body": "Thanks Shuo.\r\n\r\nTo workaround this by now, I'm saving a relation with the cover photo directly, instead with the collection, but if you later modify the collection cover image, you lose the link.", "updateAuthor": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "created": "2014-11-21T10:42:16.000+0000", "updated": "2014-11-21T10:42:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }