{"action":"created","issue":{"url":"https://api.github.com/repos/qgis/QGIS/issues/2189","labels_url":"https://api.github.com/repos/qgis/QGIS/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/qgis/QGIS/issues/2189/comments","events_url":"https://api.github.com/repos/qgis/QGIS/issues/2189/events","html_url":"https://github.com/qgis/QGIS/pull/2189","id":92596199,"number":2189,"title":"Add more options for filtering legend elements","user":{"login":"mhugo","id":1618556,"avatar_url":"https://avatars.githubusercontent.com/u/1618556?v=3","gravatar_id":"","url":"https://api.github.com/users/mhugo","html_url":"https://github.com/mhugo","followers_url":"https://api.github.com/users/mhugo/followers","following_url":"https://api.github.com/users/mhugo/following{/other_user}","gists_url":"https://api.github.com/users/mhugo/gists{/gist_id}","starred_url":"https://api.github.com/users/mhugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhugo/subscriptions","organizations_url":"https://api.github.com/users/mhugo/orgs","repos_url":"https://api.github.com/users/mhugo/repos","events_url":"https://api.github.com/users/mhugo/events{/privacy}","received_events_url":"https://api.github.com/users/mhugo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-02T09:43:53Z","updated_at":"2015-07-06T05:37:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qgis/QGIS/pulls/2189","html_url":"https://github.com/qgis/QGIS/pull/2189","diff_url":"https://github.com/qgis/QGIS/pull/2189.diff","patch_url":"https://github.com/qgis/QGIS/pull/2189.patch"},"body":"This introduces two new options to filter legend elements:\r\n- filter by expression: a boolean expression can be set. Only symbols of\r\nfeatures that make the expression evaluated to true will be kept in the legend\r\n- filter by polygon: only symbols of features that are inside the given\r\npolygon will be part of the legend.\r\n\r\nThe polygon filtering is used in particular for a new option in the\r\ncomposer legend that allows to filter out anything that is not included\r\nin the current atlas polygon.\r\n\r\nReviews are welcome on that."},"comment":{"url":"https://api.github.com/repos/qgis/QGIS/issues/comments/118729780","html_url":"https://github.com/qgis/QGIS/pull/2189#issuecomment-118729780","issue_url":"https://api.github.com/repos/qgis/QGIS/issues/2189","id":118729780,"user":{"login":"nyalldawson","id":1829991,"avatar_url":"https://avatars.githubusercontent.com/u/1829991?v=3","gravatar_id":"","url":"https://api.github.com/users/nyalldawson","html_url":"https://github.com/nyalldawson","followers_url":"https://api.github.com/users/nyalldawson/followers","following_url":"https://api.github.com/users/nyalldawson/following{/other_user}","gists_url":"https://api.github.com/users/nyalldawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nyalldawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyalldawson/subscriptions","organizations_url":"https://api.github.com/users/nyalldawson/orgs","repos_url":"https://api.github.com/users/nyalldawson/repos","events_url":"https://api.github.com/users/nyalldawson/events{/privacy}","received_events_url":"https://api.github.com/users/nyalldawson/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T05:37:44Z","updated_at":"2015-07-06T05:37:44Z","body":"@mhugo just thinking about this... wouldn't it make more sense for the expression filtering to be set per layer in the legend? Otherwise, how would you say \"I want features from this layer where the attribute matches this value, and always want this other layer included too\"?"}}