Hi Martin and Charly,
you can now register for room_created webhook: https://www.hipchat.com/docs/apiv2/webhooks#room_created . You would need to define the webhook in your capabilities descriptor: https://www.hipchat.com/docs/apiv2/capabilities
Great news, Thanks! Does that apply for any hook? In which case registering for ROOM_MESSAGE in the capabilities descriptor would trigger the webhook for any room, even newly created ones? Update (couldn't reply earlier due posting limitations): it works like a charm! Thanks for the pointer. I now have another question: is it possible to have a globally registered ROOM_MESSAGE hook (via the add-on capabilities descriptor) triggered in a 1-to-1 conversation? I have registered such hook, but it seems to be triggered only in public and private rooms.
Hi Charly, you are right it is not possible to have webhooks in 1-to-1 conversation. This is due to privacy concerns: there is an expectation that your 1-to-1 messages will only be visible to people who are in that 1-to-1 conversation. If you allow add-ons to register webhooks in those 1-to-1 sessions then add-ons can collect all the messages (.*) and violate this expectation. We are considering lifting those restrictions in the future but we want to make sure we do it in a way that does not break customer's expectations.
I would also need to get notified when a room is created in order to register a new ROOM_MESSAGE webhook on that room. Is there a way to do that?
I basically want to register a ROOM_MESSAGE webhook on each existing room, and maintain that webhook list when a room gets created/deleted/archived/unarchived. Should I manually register all those webhooks (when possible – so far I can only register ROOM_MESSAGE) or is there a better way to achieve that?
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...
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!
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