Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

ryan nauman February 10, 2016

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
Answer accepted
rich
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 10, 2016

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"
      }
    }
  ]
}
ryan nauman February 10, 2016

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
TAGS
AUG Leaders

Atlassian Community Events