public class WorklogInputBuilder extends Object
setAdjustEstimateAuto()
, setAdjustEstimateLeave()
,
setAdjustEstimateManual(String)
and setAdjustEstimateNew(String)
.
copyFromWorklog(com.atlassian.jira.rest.client.api.domain.Worklog)
method.Modifier and Type | Field and Description |
---|---|
static String |
ESTIMATE_UNIT_MINUTES |
Constructor and Description |
---|
WorklogInputBuilder(URI issueUri) |
Modifier and Type | Method and Description |
---|---|
WorklogInput |
build() |
WorklogInputBuilder |
copyFromWorklog(Worklog worklog) |
WorklogInputBuilder |
setAdjustEstimateAuto()
Sets AdjustEstimate to AUTO - will automatically adjust the value
based on the minutes spend specified on the worklog input.
This is the default option. |
WorklogInputBuilder |
setAdjustEstimateLeave()
Sets AdjustEstimate to LEAVE - leaves estimate as is.
|
WorklogInputBuilder |
setAdjustEstimateManual(int reduceEstimateByMinutes)
Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value.
|
WorklogInputBuilder |
setAdjustEstimateManual(String reduceEstimateBy)
Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value.
|
WorklogInputBuilder |
setAdjustEstimateNew(int newEstimateMinutes)
Sets AdjustEstimate to NEW - sets estimate to specified value.
|
WorklogInputBuilder |
setAdjustEstimateNew(String newEstimate)
Sets AdjustEstimate to NEW - sets estimate to specified value.
|
WorklogInputBuilder |
setAuthor(BasicUser author) |
WorklogInputBuilder |
setComment(String comment) |
WorklogInputBuilder |
setIssueUri(URI issueUri) |
WorklogInputBuilder |
setMinutesSpent(int minutesSpent) |
WorklogInputBuilder |
setSelf(URI self) |
WorklogInputBuilder |
setStartDate(org.joda.time.DateTime startDate) |
WorklogInputBuilder |
setUpdateAuthor(BasicUser updateAuthor) |
WorklogInputBuilder |
setVisibility(Visibility visibility) |
public static final String ESTIMATE_UNIT_MINUTES
public WorklogInputBuilder(URI issueUri)
public WorklogInputBuilder copyFromWorklog(Worklog worklog)
public WorklogInputBuilder setAdjustEstimateNew(String newEstimate)
newEstimate
- new estimate value to set.public WorklogInputBuilder setAdjustEstimateNew(int newEstimateMinutes)
newEstimateMinutes
- new estimate value to set, in minutes.public WorklogInputBuilder setAdjustEstimateLeave()
public WorklogInputBuilder setAdjustEstimateManual(String reduceEstimateBy)
reduceEstimateBy
- the amount to reduce the remaining estimate bypublic WorklogInputBuilder setAdjustEstimateManual(int reduceEstimateByMinutes)
reduceEstimateByMinutes
- the amount to reduce the remaining estimate by, in minutes.public WorklogInputBuilder setAdjustEstimateAuto()
public WorklogInputBuilder setSelf(URI self)
public WorklogInputBuilder setIssueUri(URI issueUri)
public WorklogInputBuilder setAuthor(BasicUser author)
public WorklogInputBuilder setUpdateAuthor(BasicUser updateAuthor)
public WorklogInputBuilder setComment(String comment)
public WorklogInputBuilder setStartDate(org.joda.time.DateTime startDate)
public WorklogInputBuilder setMinutesSpent(int minutesSpent)
public WorklogInputBuilder setVisibility(Visibility visibility)
public WorklogInput build()
Copyright © 2013 Atlassian. All Rights Reserved.