Room notification's card attribute with a url specified results in no message being sent

https://www.hipchat.com/docs/apiv2/method/send_room_notification

The docs say that attributes can have a url "Url to be opened when a user clicks on the label" but when I specify one, no message is sent to the room.

 

1 answer

1 accepted

0 votes
Accepted answer

Here's an example:

{
  "style": "application",
  "url": "https://google.com",
  "id": "d54efeb7-c5d4-4b75-b8cd-67e395969cb1",
  "title": "Aut tenetur non labore aliquam sit.",
  "description": "blah blah blah",
  "icon": {
    "url": "http://icons.iconarchive.com/icons/icons8/windows-8/48/Systems-Firefox-icon.png"
  },
  "attributes": [
    {
      "label": "odit",
      "value": {
        "url": "http://www.skyscanner.net/static/sites/default/files/australia.jpg",
        "icon": {
          "url": "http://icons.iconarchive.com/icons/designbolts/hand-stitched/24/RSS-icon.png"
        },
        "label": "ut",
        "style": "lozenge-error"
      }
    }
  ]
}

Ah, label being defined twice in attributes threw me off. I didn't catch the nesting there. Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

27,734 views 0 7
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