{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8965","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8965/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8965/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8965/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8965","id":62656448,"number":8965,"title":"Filtering issues with multiple labels","user":{"login":"roboogle","id":3163976,"avatar_url":"https://avatars.githubusercontent.com/u/3163976?v=3","gravatar_id":"","url":"https://api.github.com/users/roboogle","html_url":"https://github.com/roboogle","followers_url":"https://api.github.com/users/roboogle/followers","following_url":"https://api.github.com/users/roboogle/following{/other_user}","gists_url":"https://api.github.com/users/roboogle/gists{/gist_id}","starred_url":"https://api.github.com/users/roboogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboogle/subscriptions","organizations_url":"https://api.github.com/users/roboogle/orgs","repos_url":"https://api.github.com/users/roboogle/repos","events_url":"https://api.github.com/users/roboogle/events{/privacy}","received_events_url":"https://api.github.com/users/roboogle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-18T10:45:53Z","updated_at":"2015-07-28T08:15:22Z","closed_at":null,"body":"Since the labels moved from the sidebar to a dropdown menu, after the UI restructuring, it is no longer possible to select multiple labels in conjunction (i.e. with AND semantics).\r\n\r\nThis in my opinion is a dramatic downgrade, as we use group of labels to mark issues with different meaning, e.g. \r\n\r\ntype:bug, type:feature, type:idea, type:requirement\r\nprio:urgent\r\ncomp:c1, comp:c2, ...\r\n\r\nSo we wanted to find urgent bugs about component c2, we could filter with all the corresponding labels \"type:bug, prio:urgent, comp:c2\".\r\n\r\nFrom the usability point of view, the labels should be brought back to the sidebar in my opinion, as selecting them is a common operation when filtering.\r\n\r\nFurthermore, notice that github supports multiple selection of labels with AND semantics, and also support the specification of labels' names in the textual search field. \r\nIn particular it allows to search for labels specified in the form \"label:label-name\" which I think would be extremely useful in gitlab as well.\r\n\r\nI propose to restore the feature, according to this picture exemplifying the idea:\r\n\r\n![issues-gitlab org-gitlabce](https://cloud.githubusercontent.com/assets/3163976/6706953/94927a8e-cd62-11e4-96af-1e841bc3b59b.png)\r\n\r\nOn the left sidebar, a list of all labels is show (2), to allow the users to select one or more labels to be considered in conjunction, to show only the issues that are tagged with all the selected labels. If no labels are selected, all issues are shown as the filter is not active. \r\n\r\nIn (1) there is a filter to allow searching among labels' names. For example, writing \"type:\" in text entry (1) will show only labels whose name contains the string \"type:\", which helps when there are many defined labels.\r\n\r\nThe list can be scrolled by using scrolling bars, both horizontal and vertical (3).\r\n\r\nThe current filter which allow to select a single label (5) shall be removed, as its functionality is already contained in the new filter pane in the sidebar.\r\n\r\nInteresting would be to able to integrate label filtering in the issues search entry, which at the moment allows for searching/filtering only on issue titles and descriptions:\r\n\r\n![gitlab-filter](https://cloud.githubusercontent.com/assets/3163976/6707102/f63acb64-cd63-11e4-836b-ece94aa3dd5d.png)\r\n\r\nA better integration is done e.g. by github, which allows for filtering on many topics, including labels (4):\r\n\r\n![filters](https://cloud.githubusercontent.com/assets/3163976/6707121/1d1f0dd0-cd64-11e4-9a1d-7ca537635850.png)\r\n\r\nHere one can search/filter by using a special syntax like <label:\"label name\"> as depicted in the example.\r\n"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/125494366","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8965#issuecomment-125494366","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8965","id":125494366,"user":{"login":"roboogle","id":3163976,"avatar_url":"https://avatars.githubusercontent.com/u/3163976?v=3","gravatar_id":"","url":"https://api.github.com/users/roboogle","html_url":"https://github.com/roboogle","followers_url":"https://api.github.com/users/roboogle/followers","following_url":"https://api.github.com/users/roboogle/following{/other_user}","gists_url":"https://api.github.com/users/roboogle/gists{/gist_id}","starred_url":"https://api.github.com/users/roboogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboogle/subscriptions","organizations_url":"https://api.github.com/users/roboogle/orgs","repos_url":"https://api.github.com/users/roboogle/repos","events_url":"https://api.github.com/users/roboogle/events{/privacy}","received_events_url":"https://api.github.com/users/roboogle/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T08:15:22Z","updated_at":"2015-07-28T08:15:22Z","body":"This was implemented and waiting for MR acceptance:\r\nhttps://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1051\r\n"}}