mozilla / scrumbugz

Scrummy look at Bugzilla data. Discuss in #scrum on irc.mozilla.org.
http://scrumbugz.rtfd.org
Other
32 stars 20 forks source link

How? #135

Open koullislp opened 9 years ago

koullislp commented 9 years ago

Hello,

I am struggling to integrate scrumbugz with my bugzilla server which runs on the same host. At this point I am able to start the server (no errors) and I can create users/groups/teams/sprints etc. But apparently searching for a bug doesn't do much (broken link).

I believe it is a matter of just including the correct parameters in the config files under the settings directory. Due to the lack of documentation and my python inexperience I don't know what to modify.

Some help would be very appreciated.

Thanks,

K

koullislp commented 9 years ago

Ok, so I have set some whiteboard tags in my bugzilla, but how can I get bugmail to sync them with the specified scrumbugz project?

pmclanahan commented 9 years ago

Hi,

The way I did it for scrumbu.gs was to setup a "global follower" in bugzilla, which is an account that gets all non-private bugmail. I used an email account at my domain for this and pointed the MX DNS record at the web server's IP. I then setup Postfix (a linux email server) to send all recieved mail to a script that sent the mail as a POST request to the running Scrumbugz instance. There is a view in scrumbugz that's setup to handle these posts.

Setting up postfix was pretty easy. I basically kept defaults and setup an alias in /etc/aliases for the address:

scrumbugz: "|/home/pmclanahan/www/scrumbugz/process_bugmail.sh"

That process_bugmail.sh script is also pretty simple. You basically set an API Key in your settings for the app, then put the same key in the following script and that's what's working for me.

#!/bin/bash

API_KEY="super-sekrit"

curl -v -d api-key="${API_KEY}" --data-urlencode email="$(cat -)" https://scrumbu.gs/bugmail/process/

I've been meaning for over a year to blog about this or just document it and have failed. Sorry about that. I tried earlier having the bugmail go to an account that supported POP mail and use that as a queue, but that ended up not being as reliable.

Hope this helps!