Class WorklogInput
java.lang.Object
com.atlassian.jira.rest.client.api.domain.input.WorklogInput
Represents worklog item in JIRA. Is used to create new worklog or update existing one.
Contains also estimate adjustment options which are used only to adjust change of remaining
estimate (adjustEstimate and adjustEstimateValue).
Possible values for adjustEstimate and adjustEstimateValue are:
- When adjustEstimate is set to
WorklogInput.AdjustEstimate.AUTOorWorklogInput.AdjustEstimate.LEAVEadjustEstimateValue is not used - When adjustEstimate is set to
WorklogInput.AdjustEstimate.NEWthen remaining estimate is set to adjustEstimateValue - When adjustEstimate is set to
WorklogInput.AdjustEstimate.MANUALthen remaining estimate is reduced by adjustEstimateValue
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWorklogInput(URI self, URI issueUri, BasicUser author, BasicUser updateAuthor, String comment, org.joda.time.DateTime startDate, int minutesSpent, Visibility visibility) Creates new WorklogInput with given values.WorklogInput(URI self, URI issueUri, BasicUser author, BasicUser updateAuthor, String comment, org.joda.time.DateTime startDate, int minutesSpent, Visibility visibility, WorklogInput.AdjustEstimate adjustEstimate, String adjustEstimateValue) Creates new WorklogInput with given values -
Method Summary
Modifier and TypeMethodDescriptionstatic WorklogInputstatic WorklogInputcreate(URI issueUri, String comment, org.joda.time.DateTime startDate, int minutesSpent, Visibility visibility) booleanintgetSelf()org.joda.time.DateTimeinthashCode()toString()
-
Constructor Details
-
WorklogInput
public WorklogInput(@Nullable URI self, URI issueUri, @Nullable BasicUser author, @Nullable BasicUser updateAuthor, @Nullable String comment, org.joda.time.DateTime startDate, int minutesSpent, @Nullable Visibility visibility, WorklogInput.AdjustEstimate adjustEstimate, @Nullable String adjustEstimateValue) Creates new WorklogInput with given values- Parameters:
self- URI to this worklog, pass null if this is new worklog item.issueUri- URI to destination issueauthor- author of this worklogupdateAuthor- author of worklog actualizationcomment- comment attached to worklogstartDate- date of work startminutesSpent- time spend in minutesvisibility- visibility settings for this worklogadjustEstimate- adjust estimate optionadjustEstimateValue- value for estimate adjustment. Only used when adjustEstimate is set toWorklogInput.AdjustEstimate.NEWorWorklogInput.AdjustEstimate.MANUAL
-
WorklogInput
public WorklogInput(@Nullable URI self, URI issueUri, @Nullable BasicUser author, @Nullable BasicUser updateAuthor, @Nullable String comment, org.joda.time.DateTime startDate, int minutesSpent, @Nullable Visibility visibility) Creates new WorklogInput with given values. Sets adjust estimate option to default value -WorklogInput.AdjustEstimate.AUTO.- Parameters:
self- URI to this worklog, pass null if this is new worklog item.issueUri- URI to destination issueauthor- author of this worklogupdateAuthor- author of worklog actualizationcomment- comment attached to worklogstartDate- date of work startminutesSpent- time spend in minutesvisibility- visibility settings for this worklog
-
-
Method Details
-
create
public static WorklogInput create(URI issueUri, @Nullable String comment, org.joda.time.DateTime startDate, int minutesSpent) -
create
public static WorklogInput create(URI issueUri, @Nullable String comment, org.joda.time.DateTime startDate, int minutesSpent, @Nullable Visibility visibility) -
getSelf
-
getIssueUri
-
getAuthor
-
getUpdateAuthor
-
getComment
-
getStartDate
public org.joda.time.DateTime getStartDate() -
getMinutesSpent
public int getMinutesSpent() -
getVisibility
-
getAdjustEstimate
-
getAdjustEstimateValue
-
toString
-
equals
-
hashCode
public int hashCode()
-