{ "id": "160304", "key": "TIMOB-23395", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-01T19:12:22.000+0000", "created": "2016-05-17T17:28:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.3.0" ], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51718", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "160306", "key": "TIMOB-23397", "fields": { "summary": "Analytics: Improve structure of JSON data element for ti.background - iOS Ti SDK and APS SDK", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "51729", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "160316", "key": "TIMOB-23402", "fields": { "summary": "Analytics: Add data element to JSON payload for windows phone parity", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-07-12T01:05:17.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5. Description:\r\nThe JSON payload for ti.background includes a data element that should be improved. Currently it appears as:\r\n{code}\r\n{\r\n\t\"ver\": \"3\",\r\n\t\"id\": \"7cea9910-cf8b-4a3c-a8f8-c8ed14276cc5:dc5e5c1715b599dd\",\r\n\t\"event\": \"ti.background\",\r\n\t\"ts\": \"2014-12-09T18:14:51.282+0000\",\r\n\t\"mid\": \"dc5e5c1715b599dd\",\r\n\t\"sid\": \"79dd4123-1685-43fa-82d0-6816ddcd9901\",\r\n\t\"aguid\": \"5ae84ca8-78ad-4776-9640-b7b3dd29543b\",\r\n\t\"data\": {\r\n\t\t\"value\": \"\"\r\n\t},\r\n\t\"seq\": 3\r\n}\r\n{code}\r\n\r\nBut it should appear (if empty) as:\r\n{code}\r\n{\r\n\t\"ver\": \"3\",\r\n\t\"id\": \"7cea9910-cf8b-4a3c-a8f8-c8ed14276cc5:dc5e5c1715b599dd\",\r\n\t\"event\": \"ti.background\",\r\n\t\"ts\": \"2014-12-09T18:14:51.282+0000\",\r\n\t\"mid\": \"dc5e5c1715b599dd\",\r\n\t\"sid\": \"79dd4123-1685-43fa-82d0-6816ddcd9901\",\r\n\t\"aguid\": \"5ae84ca8-78ad-4776-9640-b7b3dd29543b\",\r\n\t\"data\": { },\r\n\t\"seq\": 3\r\n}\r\n{code}\r\n\r\n\r\nh5. Steps to reproduce:\r\n1) Install a titanium project on a android device\r\n2) Launch the app\r\n3) Use either - a) point device to staging via DNS setting, check logs. b) Use get last event api c) If you have backend access, check the raw event on AWS.\r\n4) Examine any of the ti.background events\r\n\r\nh5. Result:\r\n\"data\" element is structured poorly\r\n\r\nh5. Expected Result:\r\n\"data\" element, when empty, structured as suggested.", "attachment": [], "flagged": false, "summary": "Analytics: Improve structure of JSON data element for ti.background - Android Ti SDK and APS SDK", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "NPM Version: 2.15.1\r\nNode Version: 4.4.3\r\nMac OS: 10.11.2\r\nAppc CLI: 5.3.0-45\r\nAppc CLI NPM: 4.2.5-5\r\nTitanium SDK version: 5.3.0.v20160516040258\r\nAppcelerator Studio, build: 4.6.0.201605121040\r\nXcode 7.3.1 GM", "closedSprints": [ { "id": 631, "state": "closed", "name": "2016 Sprint 11 SDK", "startDate": "2016-05-21T00:06:10.029Z", "endDate": "2016-06-04T00:06:00.000Z", "completeDate": "2016-06-06T07:30:39.854Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "390412", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nWith the fix {{data}} looks like this: \"data\": {} \r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201607111053\r\nTi SDK : 5.4.0.v20160705213725\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.5\r\nAppc NPM : 4.2.8-1\r\nAppc CLI : 5.4.0-29\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-12T01:04:06.000+0000", "updated": "2016-07-12T01:05:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }