{"action":"created","issue":{"url":"https://api.github.com/repos/bedita/bedita/issues/584","labels_url":"https://api.github.com/repos/bedita/bedita/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/bedita/bedita/issues/584/comments","events_url":"https://api.github.com/repos/bedita/bedita/issues/584/events","html_url":"https://github.com/bedita/bedita/issues/584","id":56918444,"number":584,"title":"JSON export enhancement - \"types\" and \"all\" options","user":{"login":"stefanorosanelli","id":2122280,"avatar_url":"https://avatars.githubusercontent.com/u/2122280?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanorosanelli","html_url":"https://github.com/stefanorosanelli","followers_url":"https://api.github.com/users/stefanorosanelli/followers","following_url":"https://api.github.com/users/stefanorosanelli/following{/other_user}","gists_url":"https://api.github.com/users/stefanorosanelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanorosanelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanorosanelli/subscriptions","organizations_url":"https://api.github.com/users/stefanorosanelli/orgs","repos_url":"https://api.github.com/users/stefanorosanelli/repos","events_url":"https://api.github.com/users/stefanorosanelli/events{/privacy}","received_events_url":"https://api.github.com/users/stefanorosanelli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bedita/bedita/labels/Priority%20-%20Normal","name":"Priority - Normal","color":"67D846"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Status%20-%20In%20Progress","name":"Status - In Progress","color":"009800"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Status%20-%20Test","name":"Status - Test","color":"FC750A"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Topic%20-%20Core","name":"Topic - Core","color":"DDDDDD"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Topic%20-%20Data%20I/O","name":"Topic - Data I/O","color":"DDDDDD"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Topic%20-%20Shell","name":"Topic - Shell","color":"DDDDDD"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Type%20-%20Enhancement","name":"Type - Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"didoda","id":2227145,"avatar_url":"https://avatars.githubusercontent.com/u/2227145?v=3","gravatar_id":"","url":"https://api.github.com/users/didoda","html_url":"https://github.com/didoda","followers_url":"https://api.github.com/users/didoda/followers","following_url":"https://api.github.com/users/didoda/following{/other_user}","gists_url":"https://api.github.com/users/didoda/gists{/gist_id}","starred_url":"https://api.github.com/users/didoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didoda/subscriptions","organizations_url":"https://api.github.com/users/didoda/orgs","repos_url":"https://api.github.com/users/didoda/repos","events_url":"https://api.github.com/users/didoda/events{/privacy}","received_events_url":"https://api.github.com/users/didoda/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bedita/bedita/milestones/10","html_url":"https://github.com/bedita/bedita/milestones/3-updates","labels_url":"https://api.github.com/repos/bedita/bedita/milestones/10/labels","id":542569,"number":10,"title":"3-updates","description":"\r\n3.x releases","creator":{"login":"stefanorosanelli","id":2122280,"avatar_url":"https://avatars.githubusercontent.com/u/2122280?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanorosanelli","html_url":"https://github.com/stefanorosanelli","followers_url":"https://api.github.com/users/stefanorosanelli/followers","following_url":"https://api.github.com/users/stefanorosanelli/following{/other_user}","gists_url":"https://api.github.com/users/stefanorosanelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanorosanelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanorosanelli/subscriptions","organizations_url":"https://api.github.com/users/stefanorosanelli/orgs","repos_url":"https://api.github.com/users/stefanorosanelli/repos","events_url":"https://api.github.com/users/stefanorosanelli/events{/privacy}","received_events_url":"https://api.github.com/users/stefanorosanelli/received_events","type":"User","site_admin":false},"open_issues":56,"closed_issues":44,"state":"open","created_at":"2014-01-21T11:45:33Z","updated_at":"2015-07-31T09:14:44Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-02-07T17:26:14Z","updated_at":"2015-08-07T08:43:54Z","closed_at":null,"body":"Shell data export should work this way:\r\n * using \"id\" option we get a section with all discendents or a publication or a single object (implemented)\r\n * using \"types\" option we get only selected types, all objects without tree positioning if \"id\" option is missing\r\n * using \"all\" option we get everything, every publication and every object, also \"orphaned\" objects not on a section\r\n\r\nExamples:\r\n\r\n * export all documents and events from an instance, without tree position\r\n```\r\n./cake.sh data export -types document,event\r\n```\r\n\r\n * export every object, also all publications\r\n```\r\n./cake.sh data export -all\r\n```\r\n\r\n * export a section/publication structure, but only documents and images - use id and types option\r\n```\r\n./cake.sh data export -id 123 -types document,image\r\n```\r\n\r\nOne of the 3 options must be present, we could assume \"all\" as default if no option is passed.\r\n"},"comment":{"url":"https://api.github.com/repos/bedita/bedita/issues/comments/128642852","html_url":"https://github.com/bedita/bedita/issues/584#issuecomment-128642852","issue_url":"https://api.github.com/repos/bedita/bedita/issues/584","id":128642852,"user":{"login":"didoda","id":2227145,"avatar_url":"https://avatars.githubusercontent.com/u/2227145?v=3","gravatar_id":"","url":"https://api.github.com/users/didoda","html_url":"https://github.com/didoda","followers_url":"https://api.github.com/users/didoda/followers","following_url":"https://api.github.com/users/didoda/following{/other_user}","gists_url":"https://api.github.com/users/didoda/gists{/gist_id}","starred_url":"https://api.github.com/users/didoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didoda/subscriptions","organizations_url":"https://api.github.com/users/didoda/orgs","repos_url":"https://api.github.com/users/didoda/repos","events_url":"https://api.github.com/users/didoda/events{/privacy}","received_events_url":"https://api.github.com/users/didoda/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T08:43:54Z","updated_at":"2015-08-07T08:43:54Z","body":"With #689 'status' option for export.\r\nUsage:\r\n```\r\n./cake.sh data export -f test.json -status on,draft\r\n```\r\n"}}