{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/113","repository_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm","labels_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/113/comments","events_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/113/events","html_url":"https://github.com/StackStorm/hubot-stackstorm/issues/113","id":154756028,"number":113,"title":"Whisper Not Working with Hubot/Hipchat","user":{"login":"lmarty","id":5949943,"avatar_url":"https://avatars.githubusercontent.com/u/5949943?v=3","gravatar_id":"","url":"https://api.github.com/users/lmarty","html_url":"https://github.com/lmarty","followers_url":"https://api.github.com/users/lmarty/followers","following_url":"https://api.github.com/users/lmarty/following{/other_user}","gists_url":"https://api.github.com/users/lmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/lmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmarty/subscriptions","organizations_url":"https://api.github.com/users/lmarty/orgs","repos_url":"https://api.github.com/users/lmarty/repos","events_url":"https://api.github.com/users/lmarty/events{/privacy}","received_events_url":"https://api.github.com/users/lmarty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-13T16:53:19Z","updated_at":"2016-06-04T08:23:47Z","closed_at":null,"body":"Executing a \"st2 run chatops.post_message message=\"test\" channel=\"REDACTED\" user=\"REDACTED\" whisper=True\" command does not result in a whisper message being sent to the user.  Logs show a successful run.  Executing without the \"channel=\" value results in error\r\n \"'channel' is a required property for url: http://127.0.0.1:9101/v1/executions\" \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/comments/223743803","html_url":"https://github.com/StackStorm/hubot-stackstorm/issues/113#issuecomment-223743803","issue_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/113","id":223743803,"user":{"login":"emedvedev","id":145218,"avatar_url":"https://avatars.githubusercontent.com/u/145218?v=3","gravatar_id":"","url":"https://api.github.com/users/emedvedev","html_url":"https://github.com/emedvedev","followers_url":"https://api.github.com/users/emedvedev/followers","following_url":"https://api.github.com/users/emedvedev/following{/other_user}","gists_url":"https://api.github.com/users/emedvedev/gists{/gist_id}","starred_url":"https://api.github.com/users/emedvedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emedvedev/subscriptions","organizations_url":"https://api.github.com/users/emedvedev/orgs","repos_url":"https://api.github.com/users/emedvedev/repos","events_url":"https://api.github.com/users/emedvedev/events{/privacy}","received_events_url":"https://api.github.com/users/emedvedev/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T08:23:47Z","updated_at":"2016-06-04T08:23:47Z","body":"Awesome! That should be enough info to proceed.\r\n\r\nFirst of all, let's deal with the commands sent to the bot in PM. Are you trying `!help` or `help`? In private messages, the bot will _only_ respond to `help` without `!` — that's how Hubot works. If `help` doesn't work, the HipChat adapter might be not working for you properly, because the `help` command is built-in and unrelated to StackStorm.\r\n\r\nAs for private messages from the bot, with `whisper` set to `True` username should go into `channel` and not into `user`, which is mighty confusing and counterintuitive, but think of `channel` as a `recipient`. \r\n\r\nYour exact steps would be:\r\n\r\n1. Try sending `help` in a PM, without the exclamation mark. If the bot responds, try issuing one of the st2 commands as well.\r\n\r\n2. When an st2 command is issued in PM, StackStorm executes the corresponding action and then starts a `chatops.post_result` workflow to post the response back to you. Last step of this workflow is a `chatops.post_message` action, and if you take a look at its parameters, you'll find exactly what syntax you need to send a PM through the bot.\r\n\r\n3. Alternatively, just try every kind of username syntax that you tried before in `channel` rather than `user`."}}
{"actor":{"display_login":"emedvedev"}}