{"action":"created","issue":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1904","repository_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior","labels_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1904/labels{/name}","comments_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1904/comments","events_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1904/events","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/issues/1904","id":297242311,"number":1904,"title":"[TW-1891] New setting: default.filter","user":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"labels":[{"id":825679219,"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":834573594,"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/labels/won't%20fix","name":"won't fix","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/milestones/27","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/milestone/27","labels_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/milestones/27/labels","id":3107869,"number":27,"title":"Backlog","description":null,"creator":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"open_issues":136,"closed_issues":435,"state":"open","created_at":"2018-02-12T14:09:21Z","updated_at":"2018-02-14T20:56:48Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-02-14T20:56:32Z","updated_at":"2018-02-14T20:57:49Z","closed_at":"2018-02-14T20:56:48Z","author_association":"CONTRIBUTOR","body":"_Dennis Schridde on 2017-02-01T12:27:34Z says:_ \n\n It would be great if there was a `default.filter` setting: Unless a custom filter is given on the command line, this filter would be used when listing tasks.\n\nI could use that to \"switch projects\": A custom script sets `default.project=sample` and `default.filter=project:sample`."},"comment":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/comments/365742796","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/issues/1904#issuecomment-365742796","issue_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/1904","id":365742796,"user":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T20:57:49Z","updated_at":"2018-02-14T20:57:49Z","author_association":"CONTRIBUTOR","body":"_Dennis Schridde on 2017-10-12T09:11:40Z says:_ \n\n Indeed the context feature solved my issue, together with following Fish shell-function:\r\n```\r\nfunction task-ctx --description \"Sets current taskwarrior context and ensures new tasks are being created within that context\"\r\n        set -l project \"$argv[1]\"\r\n        if [ -z \"$project\" ]\r\n                set -l project_or_none none\r\n        else\r\n                set -l project_or_none \"$project\"\r\n        end\r\n\r\n        task context \"$project_or_none\"\r\n        task rc.confirmation=no config default.project \"$project\"\r\nend\r\n```\r\n\r\nThe `$project_or_none` workaround is necessary, because `task context` does not accept the empty string as an argument, in contrast to `task config key value`, which allows `value` to be the empty string."}}
{"actor":{"display_login":"taskwarrior"}}