Posting JIRA Issue comments to HipChat

We have JIRA/HipChat integration working well with our workflow transitions. I'd now like comments made on a bunch of our projects to automatically post to HipChat as well.

The problem I see so far is that

  1. comments aren't workflow transitions, and so can't trigger the HipChat post function
  2. project notification schemes only include email as an option

Has anyone done this or have ideas on how to set this up?

5 answers

1 accepted

10 votes
Accepted answer

Sure thing. We set up a web hook to HipChat "zap" in Zapier. We set a web hook up in JIRA and used the Zapier-generated URL as the destination. Back in Zapier, we used the following filter to catch the hook:

webhookEvent -> (Text) matches exactly -> jira:issue_updated AND

comment_body -> Exists AND

comment_body -> (Text) Does not contain -> #nohipchat

(We put that last line in there so that we had a mechanism to prevent comments from pushing to JIRA if we wanted to)

In the "Create Message" portion of the Zap, we formatted is as follows:

And it ends up looking like this:

Thanks for this! Made setting up our integration quick and painless!

Ben Wright, you are my angel.

@Ben Wright Did you need to get the Go2Group plugin to make this work?

@Bob Teplitsky No we didn't. We are only using Zapier for this. And it's still working great! For some reason the attachments disappeared from the above post, but let me know if you'd like to see them and I'll re-post them.

@Ben Wright Thanks! Yeah, if you could post them that would be awesome.

Actually, I see two images. Were there more?

No, I only included the two images. Hopefully those are helpful. Let me know if you'd like to see more, but that should cover it as long as they show up.

@Ben Wright Thanks Ben!

@Ben Wright Hi Ben, I got this working only to realise that every comment posted is a Zapier 'task', and it how they determine usage for their service. As such, I assume this is why '#nohipchat' is important in your solution?

@Thomas Peterson Good question. Actually, our reason for #nohipchat is because we often post chunky blocks text (terminal commands, long email strings for added context) to our JIRA issues. #nohipchat allows us to keep from unnecessarily "bombing" the chat room with unsavory text blocks.

2 votes

Hi Ben,

have you tried this plugin Go2Group HipChat Plugin for JIRA. I don't know if it's available for your version of JIRA though, but its features include:

- Notify Hipchat post-function. This can be added at any workflow transition.

- Subscription to selected issue events, configured per project. Following are the events supported:

  • Issue Created
  • Issue Updated
  • Issue Assigned
  • Issue Commented
  • Issue Deleted
  • Workflow Changes

Another version of the plugin is ready to release which also include announcements. You can post announcements to Hipchat directly from JIRA. Same is now available with the Confluence,Fisheye,Bamboo,Stash plugins too.

Do you know whether this Go2Group plugin works with JIRA 6? The info says it's compatible with version v.5 and doesn't mention v.6.

We have a new version that works with JIRA6. It is yet to be uploaded into marketplace. Contact support at go2group dot com if you want to try it out before it is uploaded.

Along the same lines, I'm looking to do the reverse.. I want a hipchat conversation to be linked or added as a comment in Jira. Is that possible?

Did you ever build a solution for this Asim? @Asim Baksh

Unfortunately we did not.

Thanks, I will do that. I appreciate the help in the right direction.

As a footnote, the Go2Group plugin for JIRA wasn't able to do quite what we were looking for, which was post the actual contents of our comments into HipChat rather than simply the status change. But we did figure out how to do this with thanks to an Atlassian blog post. We set up an appropriate "Zap" and are now able to see the contents of our comments inline and in realtime right in HipChat. Very nice!

Could you educate the rest of us on how you did this... that blog post didn't really explain how to get comments to work. I don't see any "new comment" type options on our zap for this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,725 views 17 21
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