Skip to content

Instantly share code, notes, and snippets.

@Casperhr
Created September 5, 2017 19:58
Show Gist options
  • Select an option

  • Save Casperhr/d859e0eb96e47bdc72fb7706e61edfa0 to your computer and use it in GitHub Desktop.

Select an option

Save Casperhr/d859e0eb96e47bdc72fb7706e61edfa0 to your computer and use it in GitHub Desktop.
* Script will make sure a project has correct budgeted hours places in each month
* "Correct" means is harvested up to today and forecasted from today and rest of the month + upcoming both
* Script can only change allocation on unlocked months, that means if there have been errors back in time will NOT be corrected by the script
* Script will only affect projects with "Auto assign hours" on (as beta)
* Script will not affect project items which are value / external
* If a project has too few hours harvested + forecasted, the hours will be places Januar the next year and flagged in an email, threshold of 4 hours
* If a project has too many hours harvested + forecasted, the hours which are too many will not be corrected, but flagged in an email, threshold of 4 hours
* Projects with several items, will be filled up 1 by 1 first created item first (like hour glass algorithm to distribute value between items)
@Casperhr
Copy link
Author

Casperhr commented Sep 5, 2017

Script will run 8:00 UTC or when first adding the flag to a project

Mails will be sent to the PM assigned to the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment