Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickname55/bfba63187a3bf575adb4ca870666d208 to your computer and use it in GitHub Desktop.
Save nickname55/bfba63187a3bf575adb4ca870666d208 to your computer and use it in GitHub Desktop.
jira , script runner, underestimated field, сколько времени было потрачено сверх первоначальной оценки
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