{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1779","repository_url":"https://api.github.com/repos/fabric8-services/fabric8-wit","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1779/labels{/name}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1779/comments","events_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1779/events","html_url":"https://github.com/fabric8-services/fabric8-wit/pull/1779","id":275906798,"number":1779,"title":"WIP: Work item type group as a search query condition","user":{"login":"kwk","id":193408,"avatar_url":"https://avatars3.githubusercontent.com/u/193408?v=4","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"labels":[{"id":344197282,"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":639515684,"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/labels/kind/enhancement","name":"kind/enhancement","color":"ededed","default":false},{"id":757540303,"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/labels/search","name":"search","color":"ba5803","default":false},{"id":435484706,"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/labels/test","name":"test","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":{"login":"kwk","id":193408,"avatar_url":"https://avatars3.githubusercontent.com/u/193408?v=4","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"assignees":[{"login":"kwk","id":193408,"avatar_url":"https://avatars3.githubusercontent.com/u/193408?v=4","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2017-11-22T00:35:28Z","updated_at":"2017-12-07T16:17:58Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1779","html_url":"https://github.com/fabric8-services/fabric8-wit/pull/1779","diff_url":"https://github.com/fabric8-services/fabric8-wit/pull/1779.diff","patch_url":"https://github.com/fabric8-services/fabric8-wit/pull/1779.patch"},"body":"I've started working on the support of the type hierarchy inside the query language and got pretty far I think. \r\n\r\n## Solution\r\n\r\nI've introduced a `\"$WITGROUP\"` query parameter which internally gets translated from simple\r\n\r\n```\r\n$WITGROUP = y\r\n$WITGROUP != y\r\n```\r\nexpressions into\r\n\r\n```\r\nType IN (y1, y2, y3, ... ,yn)\r\nType NOT IN (y1, y2, y3, ... ,yn)\r\n```\r\n\r\nexpressions where `yi` represents the `i`-th work item type associated with the work item type group `y`.\r\n\r\n### Example\r\n\r\n```\r\n$WITGROUP = \"Experiences\"\r\n```\r\ntranslates to\r\n\r\n```\r\nType IN (Experience, Value Proposition)\r\n```\r\n\r\nCurrently the work item hierarchy can be searched for on top-level of the query as well as in a deeply nested place in the query.\r\n\r\nThis relates to [Guided Type Hierarchy as a Search Query Condition [7]](https://openshift.io/openshiftio/openshiftio/plan/detail/1717)"},"comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/comments/350017105","html_url":"https://github.com/fabric8-services/fabric8-wit/pull/1779#issuecomment-350017105","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1779","id":350017105,"user":{"login":"fabric8cd","id":26630553,"avatar_url":"https://avatars2.githubusercontent.com/u/26630553?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8cd","html_url":"https://github.com/fabric8cd","followers_url":"https://api.github.com/users/fabric8cd/followers","following_url":"https://api.github.com/users/fabric8cd/following{/other_user}","gists_url":"https://api.github.com/users/fabric8cd/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8cd/subscriptions","organizations_url":"https://api.github.com/users/fabric8cd/orgs","repos_url":"https://api.github.com/users/fabric8cd/repos","events_url":"https://api.github.com/users/fabric8cd/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8cd/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T16:17:58Z","updated_at":"2017-12-07T16:17:58Z","author_association":"NONE","body":"@kwk snapshot fabric8-wit image is available for testing.  `docker pull docker.io/fabric8/fabric8-wit:SNAPSHOT-PR-1779-7`"}}
{"actor":{"display_login":"fabric8cd"}}