Last active
February 6, 2022 05:43
-
-
Save nickname55/586b11f7a77012e5a35f4069daea6cb8 to your computer and use it in GitHub Desktop.
насколько времени мы потратили больше, чем изначально планировали (originalEstimate) - ScriptRunner, тип поля [Duration (time-tracking)]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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