Hi
Here is a code:
CM = ComponentManager.getInstance()
worklogManager = CM.getWorklogManager()
for(int i=0; i<=4; i++) {
worklog = new WorklogImpl(worklogManager, issue, null, issue.reporter.name, issue.summary, new Date(), null, null, 1*3600)
worklogManager.create(issue.reporter, worklog, 0L, false)
}
OR
for(int i=0; i<=4; i++) {
params = WorklogInputParametersImpl
.issue( issue )
.startDate(new Date())
.timeSpent('1h')
.comment('123')
.buildNewEstimate()
result = wls.validateCreate( context, params )
wls.createAndAutoAdjustRemainingEstimate( context, result, true )
}
And here is a result:
5 worklog entries, with 1 hour spent
but Logged: shows only 1 hour instead of 5 hours
latest script runner addon with JIRA 6.1
same results with JIRA 5.1.7
Any ideas?
Thanks!
Sergey
