Middle Earth

Supybot JIRA plugin

I have been working on a small project recently, a JIRA plugin for supybot. Today I feel it’s feature complete (at least for its use in the Foresight Linux IRC channels). So time for a blog post :-)

Firstly the code is available at GitHub. It’s easy to setup (hopefully). See JIRA/README.txt for details. I won’t repeat it here in order to minimize duplication.

The main (and only) function is to monitor the chatting in the channels and detect when people mention an issue number. Then the bot queries the JIRA and posts a summary of the issue to the channel.

It supports multiple JIRA installations. For example in #foresight our bot knows about the Foresight JIRA, as well as the rPath JIRA, so that we can get information about conary issues (which is maintained outside Foresight Linux at rPath).

There are a few configuration options too. The format of the issue summary can be customized. There is also a timeout option (default to 5 minutes); the bot won’t report the same issue again and again, and spam the channel.

If you want to play with it, stop by #foresight and find the bot there (it may be called foresight, flbot, fleabot or other names). Then /query the bot and give it some commands (e.g. FL-12, KDE-34, etc.)

Comments