Skip to content

Instantly share code, notes, and snippets.

View htafolla's full-sized avatar

Henry Tafolla htafolla

View GitHub Profile
@jonasvp
jonasvp / harvest_monthly_budgets.py
Created November 1, 2011 09:20
Monthly budgets for harvest: cronjob for rotating projects
#!/usr/bin/env python
'''
Harvest (www.getharvest.com) does not support setting monthly budgets for projects.
The recommended workaround is creating a new project every month. This script is
supposed to run on the first of every month and uses the Harvest API in order to
archive last month's projects and create new ones for the current month. Members
and tasks are automatically copied over to the new project.
Projects with monthly budgets need to fulfill two requirements:
1. They need to have a budget set