This question is in reference to Atlassian Developer Documentation: Building a simple add-on using a Wizard
Hi Anatoly, Thanks for your answer !
I followed this example but what i need is that the /command webhook will execute a remote PHP script .
when i use the hipchat.sendMessage with the url of the php script, it only shows it in the room as a message but doesn't actually run the command .
What am i missing here ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Messages sent by add-ons don't trigger web hooks. If a user types in a /command it will trigger the webhook.
I am not sure why you need to send a message with /command and get it to trigger a webhook. Do you want to trigger a command from another add-on? You can probably hit that add-on directly instead of going through HipChat and then send a message to HipChat with the result. Or are you triggering something in your own add-on? In this case you can just execute the right code without it being triggered by /command. Just execute it and post a message with the result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.