Description
Administrators have the option to link a space to a specific Hipchat room and configure what Confluence activity will be reported to the room. This is normally done from the UI: Space Tools → Integrations → Hipchat. The follow shows how to do this with the CLI's renderRequest action.
Prerequisites
Use the UI to configure at least one Hipchat integration (Admin or space) to establish which Hipchat needs to be connected and do the login etc....
Use the Hipchat CLI to get a list of rooms eligible to be accessed with that same user id - getRoomList. Use the list to determine the room id (number) that you will need later to connect the space to a room.
Details
Let's assume the space has key EXPERIMENT and the room id is 15.
-a renderRequest --requestType PUT --request /rest/hipchat/spacetoroom/1.0/config/EXPERIMENT/15/BlogCreate?initialLink=true
There are currently 4 notification types:
- BlogCreate
- PageCreate
- PageUpdate
- QuestionCreate
To add another notification:
-a renderRequest --requestType PUT --request /rest/hipchat/spacetoroom/1.0/config/EXPERIMENT/15/PageCreate
To remove a notification:
-a renderRequest --requestType DELETE --request /rest/hipchat/spacetoroom/1.0/config/EXPERIMENT/15/PageCreate