Is it not just Time Spent / (Remaining Time + Time Spent)?
It'd probably be easier to just get the raw time values and perform your math or work.
I'm fuzzy on this but IIRC:
import com.atlassian.jira.plugin.report.impl.TimeTrackingSummaryBean def tt = new TimeTrackingSummaryBean(issues) tt.aggregateRemainingEstimate // etc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying this:
issue = issueManager.getIssueObject("ISSUEKEY") as Issue
def tt = new TimeTrackingSummaryBean(issue)
tt.aggregateRemainingEstimatebut it fails with:
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.atlassian.jira.plugin.report.impl.TimeTrackingSummaryBean(com.atlassian.jira.issue.IssueImpl) at Script39.run(Script39.groovy:12)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.