Class AddWorklogOperationSpec.AddWorklogOperationSpecBuilder
java.lang.Object
io.github.primelib.jira4j.restv3.spec.AddWorklogOperationSpec.AddWorklogOperationSpecBuilder
- Enclosing class:
- AddWorklogOperationSpec
-
Method Summary
Modifier and TypeMethodDescriptionadjustEstimate
(@Nullable String adjustEstimate) Defines how to update the issue's time estimate, the options are: *new
Sets the estimate to a specific value, defined innewEstimate
.build()
Use [expand](#expansion) to include additional information about work logs in the response.issueIdOrKey
(@NotNull String issueIdOrKey) The ID or key the issue.newEstimate
(@Nullable String newEstimate) The value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#).notifyUsers
(@Nullable Boolean notifyUsers) Whether users watching the issue are notified by email.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.The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m).toString()
-
Method Details
-
issueIdOrKey
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder issueIdOrKey(@NotNull @NotNull String issueIdOrKey) The ID or key the issue.- Returns:
this
.
-
worklog
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder worklog(@NotNull @NotNull Worklog worklog) - Returns:
this
.
-
notifyUsers
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder notifyUsers(@Nullable @Nullable Boolean notifyUsers) Whether users watching the issue are notified by email.- Returns:
this
.
-
adjustEstimate
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder adjustEstimate(@Nullable @Nullable String adjustEstimate) Defines how to update the issue's time estimate, the options are: *new
Sets the estimate to a specific value, defined innewEstimate
. *leave
Leaves the estimate unchanged. *manual
Reduces the estimate by amount specified inreduceBy
. *auto
Reduces the estimate by the value oftimeSpent
in the worklog.- Returns:
this
.
-
newEstimate
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder newEstimate(@Nullable @Nullable String 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 whenadjustEstimate
isnew
.- Returns:
this
.
-
reduceBy
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder reduceBy(@Nullable @Nullable String reduceBy) The amount to reduce the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m). For example, *2d*. Required whenadjustEstimate
ismanual
.- Returns:
this
.
-
expand
public AddWorklogOperationSpec.AddWorklogOperationSpecBuilder expand(@Nullable @Nullable String 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.AddWorklogOperationSpecBuilder 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
.
-
build
-
toString
-