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 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(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 |
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
to WorklogInput.AdjustEstimate.NEW or WorklogInput.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
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
@Nullable
public URI getSelf()
getIssueUri
public URI getIssueUri()
getAuthor
@Nullable
public BasicUser getAuthor()
getUpdateAuthor
@Nullable
public BasicUser getUpdateAuthor()
getComment
@Nullable
public 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 String getAdjustEstimateValue()
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014 Atlassian. All Rights Reserved.