Created
April 6, 2021 09:50
-
-
Save nickname55/2e3ce7ed5d2b4801b6e23c4819407bd2 to your computer and use it in GitHub Desktop.
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
| //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