All utils are callable via npm or directly:
- direct call:
node src/foo TASKID
- npm wrapper:
npm run foo -- TASKID
TOKEN
: your tfs api token, can be found in tfs profile dropdown / securityCOLLECTION_URL
: something like "http://wdsvdpxtfs06.webdev-foobar.local:8080/tfs/DefaultCollection_2017"PROJECT
: project id or project name, something like "Acme"DEFINITIONS
: list of build definitions IDs, e.g.: 1,2,3
- get the topmost parent of a task
- usage:
node src/parent TASKID
- log time
- usage:
node src/time 12345
- print times for task id 12345node src/time 12345 +5
- add 5 hours to completed, subtract it from remaining (if remaining has been set)node src/time 12345 5
- explicitly set completed to 5 hours, will not change the remaining field- TODO: close task
- get the last updated time and build number of the given definitions