Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
def issue = worklog.getIssue();
def remainingEstimate=issue.getEstimate();
if (remainingEstimate== null || remainingEstimate == 0 ) { //no remaining estimate on issue, don't allow logging work
  return "Can't log work because the remaining estimate is '0' or 'Not Specified'";
}

Don't Allow Logging Work If Original Estimate is Zero or Not Specified

...

This script prevents the worklog entry to an issue belonging to the ATP project in case the value of the original estimate field is null or zero.

...