Hi, how can I resolve the following?
running JIRA 6.4.7 and Scriptrunner 4.1.3.5
import com.atlassian.core.util.DateUtils
def resolvedNames = ["Resolved", "Closed"]
def timeDiff;
if (issue.statusObject.name in resolvedNames) {
timeDiff = issue.getResolutionDate().getTime() - issue.getCreated().getTime()
} else {
timeDiff = System.currentTimeMillis() - issue.getCreated().getTime()
}
DateUtils.getDurationString(Math.round(timeDiff / 1000))
Error -
image2015-12-10 12:5:49.png