public class

WorklogRestFieldOperationsHandler

extends Object
implements RestFieldOperationsHandler
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.rest.WorklogRestFieldOperationsHandler

Summary

Constants
String ADJUST_REMAINING_ESTIMATE_INPUT
String INCREASE_BY_INPUT
String NEW_ESTIMATE_INPUT
String REDUCE_BY_INPUT
Public Constructors
WorklogRestFieldOperationsHandler(DateTimeFormatterFactory dateTimeFormatterFactory, ProjectRoleManager projectRoleManager, I18nHelper i18n)
Public Methods
Set<String> getSupportedOperations()
Returns a list of operation names which are supported by this field.
ErrorCollection updateIssueInputParameters(IssueContext issueCtx, Issue issue, String fieldId, IssueInputParameters inputParameters, List<FieldOperationHolder> operations)
This method has to set the field value(s) in the IssueInputParameters based on the operations.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.rest.RestFieldOperationsHandler

Constants

public static final String ADJUST_REMAINING_ESTIMATE_INPUT

Constant Value: "adjustEstimate"

public static final String INCREASE_BY_INPUT

Constant Value: "increaseBy"

public static final String NEW_ESTIMATE_INPUT

Constant Value: "newEstimate"

public static final String REDUCE_BY_INPUT

Constant Value: "reduceBy"

Public Constructors

public WorklogRestFieldOperationsHandler (DateTimeFormatterFactory dateTimeFormatterFactory, ProjectRoleManager projectRoleManager, I18nHelper i18n)

Public Methods

public Set<String> getSupportedOperations ()

Returns a list of operation names which are supported by this field.

Returns
  • a set of supported Operations

public ErrorCollection updateIssueInputParameters (IssueContext issueCtx, Issue issue, String fieldId, IssueInputParameters inputParameters, List<FieldOperationHolder> operations)

This method has to set the field value(s) in the IssueInputParameters based on the operations. The issue service will validate the new field values in the IssueInputParameters, thus all permission checks are done by the issue service.

Parameters
issueCtx the Issue Context , i.e. Project IssueType
issue the issue (may be null when creating an issue)
fieldId The Id of the field being processed.
inputParameters the inputparameters containing all updatd field values.
operations the operations to perform for this field. Has to be one of the supported operations.
Returns
  • contains errors, if there was a problem when setting the field values on the IssueInputParameters. No errors if it was able to update the IssueInputParameters.