Class WorklogInputParametersImpl.Builder
java.lang.Object
com.atlassian.jira.bc.issue.worklog.WorklogInputParametersImpl.Builder
- Enclosing class:
- WorklogInputParametersImpl
A fluent-style Builder for constructing
WorklogInputParameters
, WorklogNewEstimateInputParameters
and
WorklogAdjustmentAmountInputParameters
objects.- Since:
- v4.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustmentAmount
(String adjustmentAmount) Set the adjustment amount value when building aWorklogAdjustmentAmountInputParameters
object.build()
Use this method to build the baseWorklogInputParameters
object.Use this method to build theWorklogAdjustmentAmountInputParameters
object required for the "manual adjustment" (or "adjustment amount") service calls.buildAll()
Will build theWorklogInputParameters
object and pass in every variable independent of which adjustment option you have picked.Use this method to build theWorklogNewEstimateInputParameters
object required for the "new estimate" service calls.editableCheckRequired
(boolean editableCheckRequired) errorFieldPrefix
(String errorFieldPrefix) groupLevel
(String groupLevel) Deprecated.newEstimate
(String newEstimate) Set the new estimate value when building aWorklogNewEstimateInputParameters
object.roleLevelId
(String roleLevelId) Deprecated.visibility
(Visibility visibility)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
worklogId
-
issue
-
timeSpent
-
startDate
-
comment
-
groupLevel
Deprecated.Usevisibility(com.atlassian.jira.bc.issue.visibility.Visibility)
instead. Since 6.4 -
roleLevelId
Deprecated.Usevisibility(com.atlassian.jira.bc.issue.visibility.Visibility)
instead. Since 6.4 -
visibility
-
newEstimate
Set the new estimate value when building a
WorklogNewEstimateInputParameters
object.Note: the value you set here will be ignored if you build a
WorklogInputParameters
object usingbuild()
or aWorklogAdjustmentAmountInputParameters
object usingbuildAdjustmentAmount()
.- Parameters:
newEstimate
- the new estimate value- Returns:
- the builder
- See Also:
-
adjustmentAmount
Set the adjustment amount value when building a
WorklogAdjustmentAmountInputParameters
object.Note: the value you set here will be ignored if you build a
WorklogInputParameters
object usingbuild()
or aWorklogNewEstimateInputParameters
object usingbuildNewEstimate()
.- Parameters:
adjustmentAmount
- the adjustment amount value- Returns:
- the builder
- See Also:
-
editableCheckRequired
-
errorFieldPrefix
-
build
Use this method to build the baseWorklogInputParameters
object.- Returns:
- a
WorklogInputParameters
object with the built parameters.
-
buildAll
Will build theWorklogInputParameters
object and pass in every variable independent of which adjustment option you have picked.- Returns:
- a
WorklogInputParameters
object with the built parameters.
-
buildNewEstimate
Use this method to build theWorklogNewEstimateInputParameters
object required for the "new estimate" service calls.- Returns:
- a
WorklogNewEstimateInputParameters
object with the built parameters.
-
buildAdjustmentAmount
Use this method to build theWorklogAdjustmentAmountInputParameters
object required for the "manual adjustment" (or "adjustment amount") service calls.- Returns:
- a
WorklogAdjustmentAmountInputParameters
object with the built parameters.
-
visibility(com.atlassian.jira.bc.issue.visibility.Visibility)
instead.