Slash command to local url

Is it possible to create a slash command that hits a local url? I have created one from the integrations menu but it doesn't seem to be reaching my local url which is available on our internal network. Is this supported or can I only post to publicly accessible sites? 

1 answer

1 vote
Nick Turskyi Atlassian Team Mar 14, 2017

Hi Andrew,

A webhook is initiated from HipChat servers, so they should be able to access your endpoint.

If you're using HipChat Server behind the firewall, i.e. inside your internal network, it should work.

Hope that helps,

Nick

I created a test instance and made sure I had a public URL that was accessible and it doesn't look like it's working. 

I created a simple html page with the following text in it that it should be pulling in I think

{
"color": "green",
"message": "Andrew!!!",
"notify": false,
"message_format": "text"
}

Nick Turskyi Atlassian Team Mar 16, 2017

Andrew,

Be aware that HipChat will POST to this URL, not just GET it. Some web servers don't allow POST request to static files be default (that happened to me with nginx).

I would try POST'ing to this URL manually (e.g. with curl) first in order to make sure it returns the JSON response.

Regards,

Nick

That's what it was. Thanks so much for the help.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

510 views 1 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you