public static class

WorklogInputParametersImpl.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.jira.bc.issue.worklog.WorklogInputParametersImpl.Builder

Class Overview

A fluent-style Builder for constructing WorklogInputParameters, WorklogNewEstimateInputParameters and WorklogAdjustmentAmountInputParameters objects.

Summary

Public Constructors
Builder()
Public Methods
WorklogInputParametersImpl.Builder adjustmentAmount(String adjustmentAmount)

Set the adjustment amount value when building a WorklogAdjustmentAmountInputParameters object.

WorklogInputParameters build()
Use this method to build the base WorklogInputParameters object.
WorklogAdjustmentAmountInputParameters buildAdjustmentAmount()
Use this method to build the WorklogAdjustmentAmountInputParameters object required for the "manual adjustment" (or "adjustment amount") service calls.
WorklogInputParameters buildAll()
Will build the WorklogInputParameters object and pass in every variable independent of which adjustment option you have picked.
WorklogNewEstimateInputParameters buildNewEstimate()
Use this method to build the WorklogNewEstimateInputParameters object required for the "new estimate" service calls.
WorklogInputParametersImpl.Builder comment(String comment)
WorklogInputParametersImpl.Builder editableCheckRequired(boolean editableCheckRequired)
WorklogInputParametersImpl.Builder errorFieldPrefix(String errorFieldPrefix)
@Deprecated WorklogInputParametersImpl.Builder groupLevel(String groupLevel)
This method is deprecated. Use visibility(com.atlassian.jira.bc.issue.visibility.Visibility) instead. Since 6.4
WorklogInputParametersImpl.Builder issue(Issue issue)
WorklogInputParametersImpl.Builder newEstimate(String newEstimate)

Set the new estimate value when building a WorklogNewEstimateInputParameters object.

@Deprecated WorklogInputParametersImpl.Builder roleLevelId(String roleLevelId)
This method is deprecated. Use visibility(com.atlassian.jira.bc.issue.visibility.Visibility) instead. Since 6.4
WorklogInputParametersImpl.Builder startDate(Date startDate)
WorklogInputParametersImpl.Builder timeSpent(String timeSpent)
WorklogInputParametersImpl.Builder visibility(Visibility visibility)
WorklogInputParametersImpl.Builder worklogId(Long worklogId)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public WorklogInputParametersImpl.Builder adjustmentAmount (String 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 using build() or a WorklogNewEstimateInputParameters object using buildNewEstimate().

Parameters
adjustmentAmount the adjustment amount value
Returns
  • the builder

public WorklogInputParameters build ()

Use this method to build the base WorklogInputParameters object.

Returns

public WorklogAdjustmentAmountInputParameters buildAdjustmentAmount ()

Use this method to build the WorklogAdjustmentAmountInputParameters object required for the "manual adjustment" (or "adjustment amount") service calls.

Returns

public WorklogInputParameters buildAll ()

Will build the WorklogInputParameters object and pass in every variable independent of which adjustment option you have picked.

Returns

public WorklogNewEstimateInputParameters buildNewEstimate ()

Use this method to build the WorklogNewEstimateInputParameters object required for the "new estimate" service calls.

Returns

public WorklogInputParametersImpl.Builder comment (String comment)

public WorklogInputParametersImpl.Builder editableCheckRequired (boolean editableCheckRequired)

public WorklogInputParametersImpl.Builder errorFieldPrefix (String errorFieldPrefix)

@Deprecated public WorklogInputParametersImpl.Builder groupLevel (String groupLevel)

This method is deprecated.
Use visibility(com.atlassian.jira.bc.issue.visibility.Visibility) instead. Since 6.4

public WorklogInputParametersImpl.Builder newEstimate (String 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 using build() or a WorklogAdjustmentAmountInputParameters object using buildAdjustmentAmount().

Parameters
newEstimate the new estimate value
Returns
  • the builder

@Deprecated public WorklogInputParametersImpl.Builder roleLevelId (String roleLevelId)

This method is deprecated.
Use visibility(com.atlassian.jira.bc.issue.visibility.Visibility) instead. Since 6.4

public WorklogInputParametersImpl.Builder startDate (Date startDate)

public WorklogInputParametersImpl.Builder timeSpent (String timeSpent)

public WorklogInputParametersImpl.Builder visibility (Visibility visibility)

public WorklogInputParametersImpl.Builder worklogId (Long worklogId)