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