com.atlassian.jira.rest.client.api.domain.input
Class WorklogInput
java.lang.Object
com.atlassian.jira.rest.client.api.domain.input.WorklogInput
public class WorklogInput
- extends java.lang.Object
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.AUTO
or WorklogInput.AdjustEstimate.LEAVE
adjustEstimateValue
is not used
When adjustEstimate is set to WorklogInput.AdjustEstimate.NEW
then remaining estimate is set to adjustEstimateValue
When adjustEstimate is set to WorklogInput.AdjustEstimate.MANUAL
then remaining estimate is reduced by adjustEstimateValue
Constructor Summary |
WorklogInput(java.net.URI self,
java.net.URI issueUri,
BasicUser author,
BasicUser updateAuthor,
java.lang.String comment,
org.joda.time.DateTime startDate,
int minutesSpent,
Visibility visibility)
Creates new WorklogInput with given values. |
WorklogInput(java.net.URI self,
java.net.URI issueUri,
BasicUser author,
BasicUser updateAuthor,
java.lang.String comment,
org.joda.time.DateTime startDate,
int minutesSpent,
Visibility visibility,
WorklogInput.AdjustEstimate adjustEstimate,
java.lang.String adjustEstimateValue)
Creates new WorklogInput with given values |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
WorklogInput
public WorklogInput(@Nullable
java.net.URI self,
java.net.URI issueUri,
@Nullable
BasicUser author,
@Nullable
BasicUser updateAuthor,
@Nullable
java.lang.String comment,
org.joda.time.DateTime startDate,
int minutesSpent,
@Nullable
Visibility visibility,
WorklogInput.AdjustEstimate adjustEstimate,
@Nullable
java.lang.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
to WorklogInput.AdjustEstimate.NEW
or WorklogInput.AdjustEstimate.MANUAL
WorklogInput
public WorklogInput(@Nullable
java.net.URI self,
java.net.URI issueUri,
@Nullable
BasicUser author,
@Nullable
BasicUser updateAuthor,
@Nullable
java.lang.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
create
public static WorklogInput create(java.net.URI issueUri,
@Nullable
java.lang.String comment,
org.joda.time.DateTime startDate,
int minutesSpent)
create
public static WorklogInput create(java.net.URI issueUri,
@Nullable
java.lang.String comment,
org.joda.time.DateTime startDate,
int minutesSpent,
@Nullable
Visibility visibility)
getSelf
@Nullable
public java.net.URI getSelf()
getIssueUri
public java.net.URI getIssueUri()
getAuthor
@Nullable
public BasicUser getAuthor()
getUpdateAuthor
@Nullable
public BasicUser getUpdateAuthor()
getComment
@Nullable
public java.lang.String getComment()
getStartDate
public org.joda.time.DateTime getStartDate()
getMinutesSpent
public int getMinutesSpent()
getVisibility
@Nullable
public Visibility getVisibility()
getAdjustEstimate
public WorklogInput.AdjustEstimate getAdjustEstimate()
getAdjustEstimateValue
@Nullable
public java.lang.String getAdjustEstimateValue()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2013 Atlassian. All Rights Reserved.