/** * Use this method to build the {@link WorklogNewEstimateInputParameters} object required for the "new estimate" * service calls. * * @return a {@link WorklogNewEstimateInputParameters} object with the built parameters. */ public WorklogNewEstimateInputParameters buildNewEstimate() { return new WorklogInputParametersImpl(worklogId, issue, timeSpent, startDate, comment, groupLevel, roleLevelId, getVisibility(), newEstimate, null, editableCheckRequired, errorFieldPrefix); }
/** * Use this method to build the base {@link WorklogInputParameters} object. * * @return a {@link WorklogInputParameters} object with the built parameters. */ public WorklogInputParameters build() { return new WorklogInputParametersImpl(worklogId, issue, timeSpent, startDate, comment, groupLevel, roleLevelId, getVisibility(), null, null, editableCheckRequired, errorFieldPrefix); }
/** * Use this method to build the {@link WorklogAdjustmentAmountInputParameters} object required for the * "manual adjustment" (or "adjustment amount") service calls. * * @return a {@link WorklogAdjustmentAmountInputParameters} object with the built parameters. */ public WorklogAdjustmentAmountInputParameters buildAdjustmentAmount() { return new WorklogInputParametersImpl(worklogId, issue, timeSpent, startDate, comment, groupLevel, roleLevelId, getVisibility(), null, adjustmentAmount, editableCheckRequired, errorFieldPrefix); }
/** * Will build the {@link WorklogInputParameters} object and pass in every variable independent of which * adjustment option you have picked. * * @return a {@link WorklogInputParameters} object with the built parameters. */ public WorklogInputParameters buildAll() { return new WorklogInputParametersImpl(worklogId, issue, timeSpent, startDate, comment, groupLevel, roleLevelId, getVisibility(), newEstimate, adjustmentAmount, editableCheckRequired, errorFieldPrefix); }