Hip Chat Notification

in Hip Chat notification any url i send in anchor tag with property "target='_blank' ", Hip Chat does not receive target property. Is there any alternative so that any url when i click open in new tab. Please help me for this.... Thanks

4 answers

0 vote

Hi Manoj - I'm not sure exactly what you mean. Are you sending a message through the API? All URLs in HipChat should open in new browser tabs automatically (whether you're using the desktop client or the web client). There should be no need to specifically add "target='_blank'" to provide that behavior.

Hi Chrostopher, first of all many thanks for your reply. Actually i am using the HipChat Api to send message to hipchat. The message is in html tags and this message contains anchor tag something like :

<a href="www.google.com"> Click Here </a>

In web client when I click on this link it gets open in same tab not new one(In chrome) . So please help me out for this one.


0 vote

A couple things:

1: You want to make sure that you're using the /room/<room-id>/notification API - the /room/message API doesn't allow for sending HTML, only plain text

2: The URL in your href attribute should include the scheme (e.g. https://www.google.com instead of just www.google.com)

Following those rules, I tried this with a test account and the resulting message link automatically opened up in a new browser (in Chrome):

image2017-1-9 17:47:22.png

The arguments I used for that message, for reference:

    "color": "red",
    "message_format": "html",
    "notify": "false",
    "message": "Hey - I'm an API message... &lt;a href='https://www.google.com'&gt;click here&lt;/a&gt;"

Hey Christopher,

Thanks again buddy for reply. Yes you are right, the url I had was just for comment. My complete anchor tag looks like this:

<a href="http://fake.link?from=2015-11-20T17%3A35%3A15Z&amp;until=2015-11-20T19%3A35%3A15Z"> View All Anomaly Events </a>


Screenshot from 2017-01-10 10-45-17.png

Now when i click the link, its opening in same tab. I want it to be opened in new one. Please correct me if I am doing any kind of mistake also guide me how I should achieve this functionality.

It looks like you're doing everything correctly, given you have custom text for your link. My guess is that you either have a browser setting preventing the link from opening in a new page or there's a bug in the display code for the web client. I would suggest sending an email to support@hipchat.com referencing this post and they can help you out with your specific situation.

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Published Oct 07, 2017 in Hipchat

Bringing Structure to your HipChat Instance

...have mention name FirstnameLastname. Fe.: @MaartenCautreels This certainly helps to know who is being mentioned in a conversation. Imagine your colleague sends the following message...

467 views 1 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot