{"action":"created","issue":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1622","repository_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director","labels_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1622/comments","events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1622/events","html_url":"https://github.com/Icinga/icingaweb2-module-director/issues/1622","id":356483729,"node_id":"MDU6SXNzdWUzNTY0ODM3Mjk=","number":1622,"title":"Missing Hostgroup field when hostgroups filter is set","user":{"login":"gasmick","id":33287410,"node_id":"MDQ6VXNlcjMzMjg3NDEw","avatar_url":"https://avatars3.githubusercontent.com/u/33287410?v=4","gravatar_id":"","url":"https://api.github.com/users/gasmick","html_url":"https://github.com/gasmick","followers_url":"https://api.github.com/users/gasmick/followers","following_url":"https://api.github.com/users/gasmick/following{/other_user}","gists_url":"https://api.github.com/users/gasmick/gists{/gist_id}","starred_url":"https://api.github.com/users/gasmick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasmick/subscriptions","organizations_url":"https://api.github.com/users/gasmick/orgs","repos_url":"https://api.github.com/users/gasmick/repos","events_url":"https://api.github.com/users/gasmick/events{/privacy}","received_events_url":"https://api.github.com/users/gasmick/received_events","type":"User","site_admin":false},"labels":[{"id":520090228,"node_id":"MDU6TGFiZWw1MjAwOTAyMjg=","url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/labels/feedback","name":"feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-03T12:19:51Z","updated_at":"2018-09-06T11:55:46Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nIf you set a 'director/filter/hostgroups' filter for a user role, the user should still be able to configure a host from scratch and see all available hostgroups. Especially if there is more than one hostgroup is set in the filter.\r\n\r\n## Current Behavior\r\nIf a 'director/filter/hostgroups' filter for a user role is set, the user doesn't see a hostgroup field at all during host configuration. Even when the user clones an existing host, he cannot see or change the value of the hostgroups field.\r\n\r\n## Your Environment\r\n* Director version (System - About): 1.5.1\r\n* Icinga Web 2 version and modules (System - About): 2.6.1\r\n* Icinga 2 version (`icinga2 --version`):  r2.9.1-1\r\n* Operating System and version: Ubuntu 16.04.5\r\n* Webserver, PHP versions:  Apache/2.4.18 (Ubuntu), PHP 7.0.30-0ubuntu0.16.04.1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/comments/419066407","html_url":"https://github.com/Icinga/icingaweb2-module-director/issues/1622#issuecomment-419066407","issue_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1622","id":419066407,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTA2NjQwNw==","user":{"login":"gasmick","id":33287410,"node_id":"MDQ6VXNlcjMzMjg3NDEw","avatar_url":"https://avatars3.githubusercontent.com/u/33287410?v=4","gravatar_id":"","url":"https://api.github.com/users/gasmick","html_url":"https://github.com/gasmick","followers_url":"https://api.github.com/users/gasmick/followers","following_url":"https://api.github.com/users/gasmick/following{/other_user}","gists_url":"https://api.github.com/users/gasmick/gists{/gist_id}","starred_url":"https://api.github.com/users/gasmick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasmick/subscriptions","organizations_url":"https://api.github.com/users/gasmick/orgs","repos_url":"https://api.github.com/users/gasmick/repos","events_url":"https://api.github.com/users/gasmick/events{/privacy}","received_events_url":"https://api.github.com/users/gasmick/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T11:55:46Z","updated_at":"2018-09-06T11:55:46Z","author_association":"NONE","body":"I understand your points, but the current situation means, the user cannot create a host from scratch at all. The moment his role gets a hostgroups filter, he loses the ability to create hosts in Director.\r\n\r\nConcerning the suggestion to clone sample hosts, the user doesn't know which host to clone if there is no hostgroup field to see."}}
{"actor":{"display_login":"gasmick"}}