{"action":"created","issue":{"url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/2","labels_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/2/comments","events_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/2/events","html_url":"https://github.com/hengyunabc/zabbix-api/issues/2","id":100992170,"number":2,"title":"how to pass the array of hostid to trigger.get or event.get?","user":{"login":"Diwahars","id":5858395,"avatar_url":"https://avatars.githubusercontent.com/u/5858395?v=3","gravatar_id":"","url":"https://api.github.com/users/Diwahars","html_url":"https://github.com/Diwahars","followers_url":"https://api.github.com/users/Diwahars/followers","following_url":"https://api.github.com/users/Diwahars/following{/other_user}","gists_url":"https://api.github.com/users/Diwahars/gists{/gist_id}","starred_url":"https://api.github.com/users/Diwahars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diwahars/subscriptions","organizations_url":"https://api.github.com/users/Diwahars/orgs","repos_url":"https://api.github.com/users/Diwahars/repos","events_url":"https://api.github.com/users/Diwahars/events{/privacy}","received_events_url":"https://api.github.com/users/Diwahars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T11:20:28Z","updated_at":"2015-08-15T08:39:42Z","closed_at":null,"body":"Hi,\r\n\r\ncould you help how to pass the array of hostid or itemid to trigger.get or event.get to the result for only those hostids?\r\n\r\n\r\nthanks in advance"},"comment":{"url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/comments/131316257","html_url":"https://github.com/hengyunabc/zabbix-api/issues/2#issuecomment-131316257","issue_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/2","id":131316257,"user":{"login":"hengyunabc","id":1683936,"avatar_url":"https://avatars.githubusercontent.com/u/1683936?v=3","gravatar_id":"","url":"https://api.github.com/users/hengyunabc","html_url":"https://github.com/hengyunabc","followers_url":"https://api.github.com/users/hengyunabc/followers","following_url":"https://api.github.com/users/hengyunabc/following{/other_user}","gists_url":"https://api.github.com/users/hengyunabc/gists{/gist_id}","starred_url":"https://api.github.com/users/hengyunabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hengyunabc/subscriptions","organizations_url":"https://api.github.com/users/hengyunabc/orgs","repos_url":"https://api.github.com/users/hengyunabc/repos","events_url":"https://api.github.com/users/hengyunabc/events{/privacy}","received_events_url":"https://api.github.com/users/hengyunabc/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T08:39:42Z","updated_at":"2015-08-15T08:39:42Z","body":"\r\nhttps://www.zabbix.com/documentation/2.4/manual/api/reference/trigger/get\r\n\r\nCan you try the follow code? This code is not tested.\r\n```java\r\n\t\tString host = \"192.168.66.29\";\r\n\t\tList<String> hostIds = new LinkedList<String>();\r\n\t\thostIds.add(\"1\");\r\n\t\thostIds.add(\"2\");\r\n\t\t\r\n\t\tRequest getRequest = RequestBuilder.newBuilder().method(\"trigger.get\")\r\n\t\t\t\t.paramEntry(\"hostIds\", hostIds).build();\r\n```"}}