{ "id": "150444", "key": "TIMOB-19357", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-25T15:06:24.000+0000", "created": "2015-08-17T04:58:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "attributedString" ], "versions": [], "issuelinks": [ { "id": "48713", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "107001", "key": "TIMOB-13398", "fields": { "summary": "iOS: support ellipsize property of Ti.UI.Label (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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "48711", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "62587", "key": "TIMOB-1955", "fields": { "summary": "iOS: Add support for new ellipsize and word wrap properties on labels", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T19:26:57.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Refer to this link http://iosdevelopertips.com/user-interface/truncate-string-adding-ellipsis-at-front-middle-or-end.html\r\n", "attachment": [], "flagged": false, "summary": "iOS: Add Ellipsize support for AttributedString", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 464, "state": "closed", "name": "2015 Sprint 17 SDK", "startDate": "2015-08-15T00:30:59.243Z", "endDate": "2015-08-29T00:30:00.000Z", "completeDate": "2015-08-31T08:10:47.969Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "360045", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Android and mobileweb support the ellipsize property of Ti.UI.Label directly, without having to use the AttributedString property. Please add support for ellipsize under iOS as well, as requested in TIMOB-13398, which was resolved as a duplicate of this ticket. I don't really think these are exact duplicates.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2015-08-17T12:49:41.000+0000", "updated": "2015-08-17T12:49:41.000+0000" }, { "id": "360078", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "body": "May I suggest that closing an old ticket for a duplucate is not the most helpful thing. All the old history / suggestions and watchers are on the older ticket number", "updateAuthor": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2015-08-17T16:53:15.000+0000", "updated": "2015-08-17T16:53:15.000+0000" }, { "id": "360184", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "^ I agree. The old ticket was not an exact duplicate anyway. I think it should be reopened.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2015-08-18T13:03:51.000+0000", "updated": "2015-08-18T13:03:51.000+0000" }, { "id": "360900", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR here: https://github.com/appcelerator/titanium_mobile/pull/7062", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-24T07:27:24.000+0000", "updated": "2015-08-24T07:27:24.000+0000" }, { "id": "360926", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cng] Can you provide demo code?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-24T09:34:40.000+0000", "updated": "2015-08-24T09:34:40.000+0000" }, { "id": "361021", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Sample code here:\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: '#ddd',\r\n});\r\n\r\nwin.open();\r\n\r\nvar text = 'Bacon ipsum dolor Appcelerator Titanium rocks! sit amet fatback leberkas salami sausage tongue strip steak.';\r\n\r\nvar attr = Titanium.UI.createAttributedString({\r\n text: text,\r\n attributes: [\r\n {\r\n type: Titanium.UI.ATTRIBUTE_LINE_BREAK,\r\n value: Titanium.UI.ATTRIBUTE_LINE_BREAK_BY_WORD_WRAPPING,\r\n// value: Titanium.UI.ATTRIBUTE_LINE_BREAK_BY_CHAR_WRAPPING,\r\n// value: Titanium.UI.ATTRIBUTE_LINE_BREAK_BY_CLIPPING,\r\n// value: Titanium.UI.ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_HEAD,\r\n// value: Titanium.UI.ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_TAIL,\r\n// value: Titanium.UI.ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_MIDDLE,\r\n range: [0, text.length]\r\n }\r\n ]\r\n});\r\n\r\nvar label = Titanium.UI.createLabel({\r\n left: 20,\r\n right: 20,\r\n height: 30,\r\n attributedString: attr\r\n});\r\n\r\nwin.add(label);\r\n{code}", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-25T03:27:36.000+0000", "updated": "2015-08-25T03:29:16.000+0000" }, { "id": "361116", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR approved & merged!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-25T15:16:07.000+0000", "updated": "2015-08-25T15:16:07.000+0000" }, { "id": "414346", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T19:26:57.000+0000", "updated": "2017-03-21T19:26:57.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }