Skip to content

YouTrack workflow for automatically calculating the remaining effort as the sum of the corresponding values for each subissue.

Notifications You must be signed in to change notification settings

fschopp/remaining-effort-youtrack-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTrack workflow for automatically calculating the remaining effort as the sum of the corresponding values for each subissue.

Status

Build Status Coverage Status Language grade: JavaScript

Overview

  • Simple YouTrack workflow for automatically calculating custom field “Remaining effort” (having type period) as the sum of the corresponding values for each subtask.
  • Written in TypeScript. None of the YouTrack workflow examples that I am aware of are, so the project might serve as template for other YouTrack workflows.
  • Full code coverage. Some might find the test infrastructure overkill for just a simple YouTrack workflow, but the simplicity helps for serving as example.
  • Just like YouTrack does for the Estimation field (if time tracking is enabled), the synchronization between an issue and its subissues is turned off if you manually override the remaining effort for the parent. To restore the synchronization, simply delete the remaining effort for the parent – it will then be recalculated immediately.

License

Apache License 2.0

Build

  • The source code is exclusively written in TypeScript. The TypeScript compiler compiles the source code into a CommonJS module, with a target of ECMAScript 3 (aka ES3).
  • At the time of this writing, YouTrack used the Rhino JavaScript Engine. ES3 is therefore the latest fully supported language edition.

Deployment

  • Deployment works as described in the YouTrack manual.
  • Add your YouTrack instance and your token to your npm per-user config file:
    npm config set youtrack_host https://${name}.myjetbrains.com/youtrack
    npm config set youtrack_token ${token}
    where ${name} and ${token} need to be replaced, of course.
  • Deploy to your YouTrack instance with npm run upload.

About

YouTrack workflow for automatically calculating the remaining effort as the sum of the corresponding values for each subissue.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published