Package com.deniz.jira.worklog.action
Class TimeSpentParser
java.lang.Object
com.deniz.jira.worklog.action.TimeSpentParser
public class TimeSpentParser
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description TimeSpentParser(java.lang.String timeSpent, WorkHoursSchema workHoursSchema, com.atlassian.jira.bc.issue.worklog.TimeTrackingConfiguration timeTrackingConfiguration, java.util.Locale locale)
-
Method Summary
Modifier and Type Method Description TimeSpentParser
convertFromJiraToUser()
TimeSpentParser
convertFromUserToJira()
double
getDaysPerWeekUser()
java.lang.String
getFormattedTimeSpent()
long
getHours()
double
getHoursPerDayUser()
double
getMinutes()
long
getTimeSpentAsSeconds()
-
Constructor Details
-
TimeSpentParser
public TimeSpentParser(java.lang.String timeSpent, WorkHoursSchema workHoursSchema, @Nonnull com.atlassian.jira.bc.issue.worklog.TimeTrackingConfiguration timeTrackingConfiguration, java.util.Locale locale)
-
-
Method Details
-
getFormattedTimeSpent
public java.lang.String getFormattedTimeSpent() -
getHoursPerDayUser
public double getHoursPerDayUser() -
getDaysPerWeekUser
public double getDaysPerWeekUser() -
getHours
public long getHours() -
getMinutes
public double getMinutes() -
getTimeSpentAsSeconds
public long getTimeSpentAsSeconds() -
convertFromUserToJira
public TimeSpentParser convertFromUserToJira() throws com.atlassian.core.util.InvalidDurationException- Throws:
com.atlassian.core.util.InvalidDurationException
-
convertFromJiraToUser
public TimeSpentParser convertFromJiraToUser() throws com.atlassian.core.util.InvalidDurationException- Throws:
com.atlassian.core.util.InvalidDurationException
-