{ "id": "170712", "key": "AC-5488", "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": "2018-01-03T19:08:24.000+0000", "created": "2018-01-03T14:49:52.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-01-03T21:16:59.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Hi guys,\r\nwhen I create label and set it's text to string with \\n, new line is correct. When I create label and set it's text later(via HTTP request and JSON parse), new line \\n is ignored(tested on iPhone X, 11.2.1, TiSDK 7.0.1).\r\nPlease take a look.\r\nThanks", "attachment": [], "flagged": false, "summary": "[iOS] Label's new line ignored when set programmaticaly ", "creator": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "subtasks": [], "reporter": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "environment": null, "comment": { "comments": [ { "id": "432693", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please add a complete test-case to reproduce this behavior.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-03T19:08:24.000+0000", "updated": "2018-01-03T19:08:24.000+0000" }, { "id": "432696", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi Hans,\r\nI tested it again and I'm very sorry, the problem was in my backend server which escaped \\n to \\\\n in response.\r\nAfter some tweaks with regexp and string replace is everything working as expected.\r\nYou can mark this as solved.\r\nThank you", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2018-01-03T21:16:59.000+0000", "updated": "2018-01-03T21:16:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }