It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
  • Community
  • Products
  • Hipchat
  • Questions
  • what if i want my integration to be effective on all the rooms and not just on a specific room ? a simple integration with the wizard .

what if i want my integration to be effective on all the rooms and not just on a specific room ? a simple integration with the wizard .

This question is in reference to Atlassian Developer Documentation: Building a simple add-on using a Wizard

Ask your question here...

1 answer

1 vote
Anatoli Atlassian Team May 03, 2016
Simple BYO Integrations (the wizard) can only be created for specific rooms (the token you get is only allowed to post to a particular room).
You could accomplish what you’re after by writing a simple integration that handles a web hook (matching e.g. ‘/your-command’).
We have a starter example that is pretty close to what you’d need: https://developer.atlassian.com/hipchat/tutorials/building-your-first-add-on-node-js

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 ? 

Anatoli Atlassian Team May 04, 2016

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,199 views 9 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you