Class AddWorklogOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv2.spec.AddWorklogOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class AddWorklogOperationSpec
extends Object
AddWorklogSpec
Specification for the AddWorklog operation.
Add worklog
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAddWorklogOperationSpec(String issueIdOrKey, Worklog worklog, Boolean notifyUsers, String adjustEstimate, String newEstimate, String reduceBy, String expand, Boolean overrideEditableFlag) Constructs a validated instance ofAddWorklogOperationSpec.Constructs a validated instance ofAddWorklogOperationSpec. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringDefines how to update the issue's time estimate, the options are: *newSets the estimate to a specific value, defined innewEstimate.adjustEstimate(@Nullable String adjustEstimate) Defines how to update the issue's time estimate, the options are: *newSets the estimate to a specific value, defined innewEstimate.builder()protected booleanboolean@Nullable Stringexpand()Use [expand](#expansion) to include additional information about work logs in the response.Use [expand](#expansion) to include additional information about work logs in the response.inthashCode()@NotNull StringThe ID or key the issue.issueIdOrKey(@NotNull String issueIdOrKey) The ID or key the issue.@Nullable StringThe value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#).newEstimate(@Nullable String newEstimate) The value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#).@Nullable BooleanWhether users watching the issue are notified by email.notifyUsers(@Nullable Boolean notifyUsers) Whether users watching the issue are notified by email.@Nullable BooleanWhether the worklog entry should be added to the issue even if the issue is not editable, because jira.issue.editable set to false or missing.overrideEditableFlag(@Nullable Boolean overrideEditableFlag) Whether the worklog entry should be added to the issue even if the issue is not editable, because jira.issue.editable set to false or missing.@Nullable StringreduceBy()The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m).The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m).toString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missing@NotNull Worklogworklog()
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
AddWorklogOperationSpec
Constructs a validated instance ofAddWorklogOperationSpec.- Parameters:
spec- the specification to process
-
AddWorklogOperationSpec
@Internal public AddWorklogOperationSpec(String issueIdOrKey, Worklog worklog, Boolean notifyUsers, String adjustEstimate, String newEstimate, String reduceBy, String expand, Boolean overrideEditableFlag) Constructs a validated instance ofAddWorklogOperationSpec.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
issueIdOrKey- The ID or key the issue.worklog-notifyUsers- Whether users watching the issue are notified by email.adjustEstimate- Defines how to update the issue's time estimate, the options are: *newSets the estimate to a specific value, defined innewEstimate. *leaveLeaves the estimate unchanged. *manualReduces the estimate by amount specified inreduceBy. *autoReduces the estimate by the value oftimeSpentin the worklog.newEstimate- The value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). For example, *2d*. Required whenadjustEstimateisnew.reduceBy- The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m). For example, *2d*. Required whenadjustEstimateismanual.expand- Use [expand](#expansion) to include additional information about work logs in the response. This parameter acceptsproperties, which returns worklog properties.overrideEditableFlag- Whether the worklog entry should be added to the issue even if the issue is not editable, because jira.issue.editable set to false or missing. For example, the issue is closed. Connect and Forge app users with *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) can use this flag.
-
AddWorklogOperationSpec
protected AddWorklogOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
-
issueIdOrKey
The ID or key the issue. -
worklog
-
notifyUsers
Whether users watching the issue are notified by email. -
adjustEstimate
Defines how to update the issue's time estimate, the options are: *newSets the estimate to a specific value, defined innewEstimate. *leaveLeaves the estimate unchanged. *manualReduces the estimate by amount specified inreduceBy. *autoReduces the estimate by the value oftimeSpentin the worklog. -
newEstimate
The value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). For example, *2d*. Required whenadjustEstimateisnew. -
reduceBy
The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m). For example, *2d*. Required whenadjustEstimateismanual. -
expand
Use [expand](#expansion) to include additional information about work logs in the response. This parameter acceptsproperties, which returns worklog properties. -
overrideEditableFlag
Whether the worklog entry should be added to the issue even if the issue is not editable, because jira.issue.editable set to false or missing. For example, the issue is closed. Connect and Forge app users with *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) can use this flag. -
issueIdOrKey
The ID or key the issue.- Returns:
this.
-
worklog
- Returns:
this.
-
notifyUsers
Whether users watching the issue are notified by email.- Returns:
this.
-
adjustEstimate
Defines how to update the issue's time estimate, the options are: *newSets the estimate to a specific value, defined innewEstimate. *leaveLeaves the estimate unchanged. *manualReduces the estimate by amount specified inreduceBy. *autoReduces the estimate by the value oftimeSpentin the worklog.- Returns:
this.
-
newEstimate
The value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). For example, *2d*. Required whenadjustEstimateisnew.- Returns:
this.
-
reduceBy
The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m). For example, *2d*. Required whenadjustEstimateismanual.- Returns:
this.
-
expand
Use [expand](#expansion) to include additional information about work logs in the response. This parameter acceptsproperties, which returns worklog properties.- Returns:
this.
-
overrideEditableFlag
public AddWorklogOperationSpec overrideEditableFlag(@Nullable @Nullable Boolean overrideEditableFlag) Whether the worklog entry should be added to the issue even if the issue is not editable, because jira.issue.editable set to false or missing. For example, the issue is closed. Connect and Forge app users with *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) can use this flag.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-