Class WorklogInputBuilder
java.lang.Object
com.atlassian.jira.rest.client.api.domain.input.WorklogInputBuilder
Builder class for WorklogInput. Allows to create new worklogInput instance by using convenient setters.
Especially useful are methods to set estimate adjustment options:
setAdjustEstimateAuto(), setAdjustEstimateLeave(),
setAdjustEstimateManual(String) and setAdjustEstimateNew(String).
If you want ot create new WorklogInput from existing Worklog entity then use
copyFromWorklog(com.atlassian.jira.rest.client.api.domain.Worklog) method.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()copyFromWorklog(Worklog worklog) Sets AdjustEstimate to AUTO - will automatically adjust the value based on the minutes spend specified on the worklog input.Sets AdjustEstimate to LEAVE - leaves estimate as is.setAdjustEstimateManual(int reduceEstimateByMinutes) Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value.setAdjustEstimateManual(String reduceEstimateBy) Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value.setAdjustEstimateNew(int newEstimateMinutes) Sets AdjustEstimate to NEW - sets estimate to specified value.setAdjustEstimateNew(String newEstimate) Sets AdjustEstimate to NEW - sets estimate to specified value.setComment(String comment) setIssueUri(URI issueUri) setMinutesSpent(int minutesSpent) setStartDate(org.joda.time.DateTime startDate) setUpdateAuthor(BasicUser updateAuthor) setVisibility(Visibility visibility)
-
Field Details
-
ESTIMATE_UNIT_MINUTES
- See Also:
-
-
Constructor Details
-
WorklogInputBuilder
-
-
Method Details
-
copyFromWorklog
-
setAdjustEstimateNew
Sets AdjustEstimate to NEW - sets estimate to specified value.- Parameters:
newEstimate- new estimate value to set.
You can specify a time unit after a time value 'X', such as Xw, Xd, Xh or Xm, to represent weeks (w), days (d), hours (h) and minutes (m), respectively.
If you do not specify a time unit, minute will be assumed.- Returns:
- this worklog input builder object
-
setAdjustEstimateNew
Sets AdjustEstimate to NEW - sets estimate to specified value.- Parameters:
newEstimateMinutes- new estimate value to set, in minutes.- Returns:
- this worklog input builder object
-
setAdjustEstimateLeave
Sets AdjustEstimate to LEAVE - leaves estimate as is.- Returns:
- this worklog input builder object
-
setAdjustEstimateManual
Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value.- Parameters:
reduceEstimateBy- the amount to reduce the remaining estimate by
You can specify a time unit after a time value 'X', such as Xw, Xd, Xh or Xm, to represent weeks (w), days (d), hours (h) and minutes (m), respectively.
If you do not specify a time unit, minute will be assumed.- Returns:
- this worklog input builder object
-
setAdjustEstimateManual
Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value.- Parameters:
reduceEstimateByMinutes- the amount to reduce the remaining estimate by, in minutes.- Returns:
- this worklog input builder object
-
setAdjustEstimateAuto
Sets AdjustEstimate to AUTO - will automatically adjust the value based on the minutes spend specified on the worklog input.This is the default option.
- Returns:
- this worklog input builder object
-
setSelf
-
setIssueUri
-
setAuthor
-
setUpdateAuthor
-
setComment
-
setStartDate
-
setMinutesSpent
-
setVisibility
-
build
-