{ "id": "119171", "key": "AC-2712", "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": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-08-30T17:41:53.000+0000", "created": "2013-08-28T00:29:38.000+0000", "labels": [ "acs", "bug" ], "versions": [], "issuelinks": [ { "id": "31435", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "119116", "key": "AC-2102", "fields": { "summary": "ACS Places Query bug on Cocoafish (worked fine yesterday)", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:49.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": [], "description": "My application is working few days ago.\r\nBut it does not work today.\r\n\r\nI use $gt on updated_at, see below.\r\n\r\n{code}\r\nCloud.Places.query({\r\n limit: 1,\r\n where: {\r\n user_id: \"XXXXXXXXXX\",\r\n thread_id: { \"$exists\" : false },\r\n closed: { \"$exists\" : false },\r\n updated_at: { \"$gt\": moment().subtract(\"minutes\", 30).toDate() }\r\n },\r\n order: '-created_at'\r\n},\r\nfunction (e) {\r\n alert(e);\r\n});\r\n{code}\r\n\r\nThe console output, below.\r\n\r\n{code}\r\nACS Request: { url: \"places/query.json\", verb: \"GET\", data: {\"limit\":1,\"where\":{\"user_id\":\"XXXXXXXXXX\",\"thread_id\":{\"$exists\":false},\"closed\":{\"$exists\":false},\"updated_at\":{\"$gt\":\"2013-08-27T23:37:11.262Z\"}},\"order\":\"-created_at\"} })\r\n{code}\r\n\r\nAPI returns 200 but result is empty. Not found records.\r\n\r\nWhen I removed updated_at condition, there are records.My condition is correct.\r\nI am very troubled that it is not available.\r\n(Maybe this problem is related TC-2837 and TC-2836.)\r\n\r\nPlease fix.\r\nBest regards,", "attachment": [], "flagged": false, "summary": "ACS Places query cannot use \"$gt\" on updated_at field.", "creator": { "name": "yujiod", "key": "yujiod", "displayName": "Yuji ODA", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "yujiod", "key": "yujiod", "displayName": "Yuji ODA", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "Appcelerator ACS, Titanium 3.1.2GA, iOS 6.1.3", "comment": { "comments": [ { "id": "268528", "author": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "body": "What is the actual value of the timestamp? In our documentation we only support \n\n2013-08-21T04:54:22+0000\n\nor \n2013-08-21T04:54:22-0000\n\nCan you please confirm the format of your timestamp?\n\nyou can also get it from acs admin console log", "updateAuthor": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-28T01:41:59.000+0000", "updated": "2013-08-28T01:41:59.000+0000" }, { "id": "268530", "author": { "name": "yujiod", "key": "yujiod", "displayName": "Yuji ODA", "active": true, "timeZone": "Asia/Tokyo" }, "body": "The updated_at field value is auto generated by ACS.\n\nThe actual value example is below.\n(on ACS admin console)\n\n> 2013-08-28T00:54:27+0000\n\nThank you.", "updateAuthor": { "name": "yujiod", "key": "yujiod", "displayName": "Yuji ODA", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2013-08-28T01:54:58.000+0000", "updated": "2013-08-28T01:54:58.000+0000" }, { "id": "268533", "author": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "body": "can you please email me your app key and actual query that failed?\n\nwkong@appcelerator.com", "updateAuthor": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-28T02:05:30.000+0000", "updated": "2013-08-28T02:05:30.000+0000" }, { "id": "268637", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Yuji,\n\nApologies for any inconvenience caused, it should be working now, it would be great if you could post here to clarify.\n\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-28T17:24:20.000+0000", "updated": "2013-08-28T17:24:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }