We are looking for integrating our HipChat cloud server to our JIRA Server. Can anyone provide me some pointers to start with for the following requirements:
1) We need to create two rooms on HipChat per the name of the JIRA ticket. For example , if a JIRA ticket is named as ABC-123, we need 2 rooms to be created automatically - one with the name of the ticket i.e. ABC-123 and the other as say, ABC-123-Other
2) Also given that we have server version of JIRA and cloud version of Hipchat, what would be the best way to make these 2 systems communicate - would it be through Java API or Node JS? I would prefer Java, but can also go for Node JS solution if need be. Basically what we want here is that the link to HipChat rooms that would be created in JIRA ticket, per the requirement 1 above, should also be able to be sent to some third party system as well. What would be the best approach here to get the room link that HipChat creates?
Community moderators have prevented the ability to post new answers.
Hi,
I am one of the developers for HipChat/JIRA integration and I will try to answer all your questions here...
You can see more info about the plugin here: https://confluence.atlassian.com/display/JIRACLOUD/Configuring+HipChat+in+JIRA+Cloud
I don't know your JIRA version but I would suggest to update to the latest version of the plugin before starting the process of connection
1) We need to create two rooms on HipChat per the name of the JIRA ticket. For example , if a JIRA ticket is named as ABC-123, we need 2 rooms to be created automatically - one with the name of the ticket i.e. ABC-123 and the other as say, ABC-123-Other
Right now you can use "Dedicated Rooms" , it's not automatic , it's just a button in the ticket that will make what you want and any comments happening about that ticket in HipChat and any change in the ticket in JIRA will be posted to that room.
2) Also given that we have server version of JIRA and cloud version of Hipchat, what would be the best way to make these 2 systems communicate - would it be through Java API or Node JS? I would prefer Java, but can also go for Node JS solution if need be. Basically what we want here is that the link to HipChat rooms that would be created in JIRA ticket, per the requirement 1 above, should also be able to be sent to some third party system as well. What would be the best approach here to get the room link that HipChat creates?
The best way is to make JIRA addressable from the internet, that way a bi-directional communication is created and will let people inside HipChat type issue-keys and JIRA will respond back with that.
Apart from that, JIRA will track all the mentions about those tickets and you will be able to see all those mentions from the JIRA ticket.
Thanks Carlos for the response - however I am still a bit unclear - is there a way we can create 2 rooms from a jira ticket like I have mentioned in the requirement by a single click of "Create a hipchat room " button?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no, there is no way right now to do that, the idea is that one JIRA ticket has one dedicated room where all the information goes there, and all the teams could go there to discuss about it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot @Carlos Khatchikian , just one last question : Is there a REST API for hipchat integration plugin which can return the URL of the room if I pass the room name? I am currently looking at the REST calls provided by the plugin, but unable to find such call? Any idea? Please let me know soon as we need this pretty urgently.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Carlos Khatchikian , for my above comment, I tried a POST on this /rest/hipchat/integration/1.0/rooms, but its giving me error when I pass the room name , saying the room already exists. Please let me know what would the right REST call to use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you do a GET to that API it will list all the rooms with ids, be careful cause that API will make many API calls to HipChat and you could be hitting a rate limit. HipChat has a rate limit of 500 requests per 5 minutes. When you. To create the URL of a room to open THAT room in the webclient the url is like this: https://{groupname}.hipchat.com/room/{room id or room name (encoded)} So if you have a HipChat group called "test-rooms" and a room called "room link" The url would be: https://test-rooms.hipchat.com/rooms/room%20link I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Carlos Khatchikian . Actually, I got the room details by making use of this REST call /rest/hipchat/compatibility/1.0/issuepanel/data/. This works, BUT lets say some hipchat rooms are configured based on the JQL resultset per project, is there a way in which I can get all roomsby just passing the issue id similar to the REST call I just mentioned?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Carlos Khatchikian , I need some help from you regarding this again. So , it turns out that I am unable to make this call : AJS.params.baseURL + "/rest/hipchat/compatibility/1.0/issuepanel/data/"+issueId+".json from within my plugin. This call can give me the REST URL I am looking for , and if I make it from REST Browser, or even if I paste this in the address bar of my browser, it still gives me the JSON. But I need to make this call from the plugin , and in that case it always errors out i.e. goes to the error: section of the AJAX call. Please provide your input on this - is there any restrcition in making that REST call from any other plugin?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Carlos Khatchikian , I have basically elaborated my concerns here : https://answers.atlassian.com/questions/32513185/jira-hipchat-integration-plugins-rest-call-fails-when-called-from-some-other-plugin-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jagnesh,
Atlassian have already built this intergration for Jira. All you need to do is install the HipChat connector plugin from the url below. Once configured you will have your integration.
https://marketplace.atlassian.com/plugins/com.atlassian.labs.hipchat.hipchat-for-jira-plugin
I hope hope this helps.
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.