{ "id": "160306", "key": "TIMOB-23397", "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": [], "resolution": null, "resolutiondate": null, "created": "2016-05-17T17:29:41.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" }, "outwardIssue": { "id": "160304", "key": "TIMOB-23395", "fields": { "summary": "Analytics: Improve structure of JSON data element for ti.background - Android Ti SDK and APS SDK", "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 } } } }, { "id": "51730", "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": null, "updated": "2018-02-28T19:55:42.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS 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 ios 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 - iOS 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", "comment": { "comments": [ { "id": "386594", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Using Ti SDK 5.4.0.v20160519143319 I don't see the field \"value\". It seems to be behaving correctly.\r\n[~emerriman] Can QE check please?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-24T07:23:18.000+0000", "updated": "2016-05-24T07:23:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }