Command line interaction with FogBugz.
Install as Ruby gem:
gem install fogbugz-commands
or use Docker as mentioned below.
You need to configure the login information.
Either set environment variables:
FOGBUGZ_EMAIL=you@company.com
FOGBUGZ_SERVER=company.fogbugz.com
(and optionally FOGBUGZ_PASSWORD
if you feel like it)
Or create a file in your home directory called .fogbugz.yml
with this content:
email: you@company.com
server: company.fogbugz.com
Use report
to view the time registered in a time interval on a particular case or for a particular person:
fogbugz report --from 2016-10-01 --to 2017-02-12 --id 67
fogbugz report --from 2016-10-01 --to 2017-02-12 --case 12345
Use last_week
to view the time registered for a particular case, all persons in the previous week:
fogbugz last_week --case 12345
Use this_week
to view the time registered for a particular person, all cases in the current week:
fogbugz this_week --id 67
Use person
to view details of a person based on the person's FogBugz ID:
fogbugz person --id 67
View help on all commands or a specific command with:
fogbugz help
fogbugz help <command>
Use the image martinm/fogbugz
and set environment variables:
docker run --rm -it -e FOGBUGZ_EMAIL=you@company.com -e FOGBUGZ_SERVER=company.fogbugz.com martinm/fogbugz help
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Comments, bug reports and pull requests are welcome on GitHub at https://github.com/martinmosegaard/fogbugz-commands.
The gem is available as open source under the terms of the MIT License.