{"id":5303,"date":"2017-09-17T19:47:41","date_gmt":"2017-09-17T16:47:41","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5303"},"modified":"2017-09-17T19:47:41","modified_gmt":"2017-09-17T16:47:41","slug":"import-from-trello-fails-if-the-exported-board-has-a-checklist","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2017\/09\/17\/import-from-trello-fails-if-the-exported-board-has-a-checklist\/","title":{"rendered":"Import from Trello fails if the exported board has a checklist"},"content":{"rendered":"<p><strong>Impacted version<\/strong>: 0.38<\/p>\n<p><strong>Server Setup Information<\/strong>:<\/p>\n<ul>\n<li>Operating System: Ubuntu 16.04<\/li>\n<li>Deployment Method: snap<\/li>\n<\/ul>\n<p><code>snap info wekan<\/code>\u00a0reports snap-id as\u00a0<code>jtpboSYvTCEyHoutkkRo1SI9ioSMOUb3<\/code>\u00a0(tracking: stable). I&#8217;m not sure how to find out Node and MongoDB versions from the snap, but if the snap ID isn&#8217;t enough, just show me how to get those version numbers and I&#8217;ll add them.<\/p>\n<ul>\n<li>ROOT_URL environment variable (Is there a subfolder?): reproducible both with (<a href=\"https:\/\/my-domain.com\/kan\">https:\/\/my-domain.com\/kan<\/a>) and without subdirectory (<a href=\"http:\/\/localhost:5000\/\">http:\/\/localhost:5000<\/a>\u00a0inside a VM).<\/li>\n<\/ul>\n<p><strong>Steps to reproduce<\/strong>:<\/p>\n<ol>\n<li>Create a board in Trello.<\/li>\n<li>Create a list in the board.<\/li>\n<li>Create a card in the list.<\/li>\n<li>Create a checklist in the card.<\/li>\n<li>Export the board as JSON.<\/li>\n<li>In Wekan, initiate a Trello import.<\/li>\n<li>Map the user.<\/li>\n<\/ol>\n<p><strong>What I expect to happen<\/strong>:<br \/>\nFor the board to be imported in Wekan.<\/p>\n<p><strong>What happens<\/strong>:<br \/>\nThe importer reports a &#8217;400&#8217;.\u00a0<code>journalctl -u snap.wekan.wekan.service<\/code>\u00a0reports<\/p>\n<pre><code>Exception while invoking method 'importBoard' Error: Sort is required\r\n     at getErrorObject (packages\/aldeed_collection2-core.js:480:15)\r\n     at [object Object].doValidate (packages\/aldeed_collection2-core.js:462:13)\r\n     at [object Object].Mongo.Collection.(anonymous function) [as insert] (packag\r\n     at packages\/matb33_collection-hooks.js:127:46\r\n     at [object Object]._.extend.withValue (packages\/meteor.js:1122:17)\r\n     at Object.directOp (packages\/matb33_collection-hooks.js:47:27)\r\n     at Object.self.direct.(anonymous function) [as insert] (packages\/matb33_coll\r\n     at models\/trelloCreator.js:407:45\r\n     at Array.forEach (native)\r\n     at TrelloCreator.createChecklists (models\/trelloCreator.js:400:22)\r\n     at TrelloCreator.create (models\/trelloCreator.js:606:10)\r\n     at [object Object].Meteor.methods.importBoard (models\/import.js:27:20)\r\n     at packages\/check.js:130:16\r\n     at [object Object]._.extend.withValue (packages\/meteor.js:1122:17)\r\n     at Object.exports.Match._failIfArgumentsAreNotAllChecked (packages\/check.js:\r\n     at maybeAuditArgumentChecks (packages\/ddp-server\/livedata_server.js:1734:18)\r\nSanitized and reported to the client as: Sort is required [400]\r\n<\/code><\/pre>\n<p>I&#8217;m attaching the\u00a0<a href=\"https:\/\/github.com\/wekan\/wekan\/files\/1309169\/trello.json.txt\">failing JSON<\/a>\u00a0(with email sanitized).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The importer reports a &#8217;400&#8217;. journalctl -u snap.wekan.wekan.service reports &#8221;Exception while invoking method &#8217;importBoard&#8217; Error: Sort is required&#8221;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14041,14042],"class_list":["post-5303","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-trello","tag-wekan","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5303"}],"version-history":[{"count":3,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5303\/revisions"}],"predecessor-version":[{"id":5306,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5303\/revisions\/5306"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}