Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickname55/586b11f7a77012e5a35f4069daea6cb8 to your computer and use it in GitHub Desktop.
Save nickname55/586b11f7a77012e5a35f4069daea6cb8 to your computer and use it in GitHub Desktop.
насколько времени мы потратили больше, чем изначально планировали (originalEstimate) - ScriptRunner, тип поля [Duration (time-tracking)]
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