sourceheads / shd.open.jira-hipchat-hook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shd.open.jira-hipchat-hook

converts jira webhook requests to hipchat API calls using velocity to render the message.

usage

  • update the jira.properties sample file, esp. add your hipchat API token and the id of the room you want the message to be sent to.
  • deploy the app to your servlet container
  • add a new webhook to your jira instance; eg. when deployed under context 'jira-hipchat-hook': http://yourserver:port/jira-hipchat-hook/convert?config=jira
  • whenever jira calls the webhook the jira.properties config will be used to render a message and send it to hipchat
  • multiple configs can be triggered by adding them to the webhook url: eg. http://yourserver:port/jira-hipchat-hook/convert?config=jira&config=another
  • configs can be matched against issue keys with a regexp

why?

because the current hipchat plugin for jira requires modifications to the workflow; and the room is configured there, so multiple projects need separate workflows if you want to message different rooms.

disclaimer

this is an initial quick-and-dirty proof of concept. use at your own risk.

About


Languages

Language:Java 100.0%