Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickname55/2e3ce7ed5d2b4801b6e23c4819407bd2 to your computer and use it in GitHub Desktop.
Save nickname55/2e3ce7ed5d2b4801b6e23c4819407bd2 to your computer and use it in GitHub Desktop.
//import java.time.Duration;
def originalEstimate = issue.getOriginalEstimate();
def timeSpent = issue.getTimeSpent();
if (originalEstimate != null) {
if (originalEstimate < timeSpent) {
return timeSpent - originalEstimate;
} else {
return 0L;
}
} else {
return 0L;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment