com.atlassian.jira.issue.fields
Interface WorklogSystemField.WorklogValue

Enclosing class:
WorklogSystemField

public static interface WorklogSystemField.WorklogValue

A value object used to aggregate all the transient values required in taking input from the UI, validating it and creating the resultant work logs.


Nested Class Summary
static class WorklogSystemField.WorklogValue.AdjustEstimate
          Denotes the possible states of the radio button group which captures what the user wishes to do with the estimate after logging work.
static class WorklogSystemField.WorklogValue.Builder
           
 
Method Summary
 WorklogSystemField.WorklogValue.AdjustEstimate adjustEstimate()
           
 String adjustmentAmount()
           
 Long adjustmentAmountLong()
           
 String comment()
           
 String commentLevel()
           
 Long id()
           
 boolean isActivated()
           
 boolean isCreateIssue()
           
 boolean isEditIssue()
           
 boolean isSet()
           
 String newEstimate()
           
 Long newEstimateLong()
           
 String startDate()
           
 String timeLogged()
           
 WorklogResult worklogResult()
           
 

Method Detail

id

Long id()

isActivated

boolean isActivated()
Returns:
true if the "Log Work" checkbox is checked.

timeLogged

String timeLogged()

startDate

String startDate()

adjustEstimate

WorklogSystemField.WorklogValue.AdjustEstimate adjustEstimate()

newEstimate

String newEstimate()

newEstimateLong

Long newEstimateLong()

adjustmentAmount

String adjustmentAmount()

adjustmentAmountLong

Long adjustmentAmountLong()

comment

String comment()

commentLevel

String commentLevel()

worklogResult

WorklogResult worklogResult()
Returns:
the result after invoking the WorklogService's "validateCreate" methods. Stored on the WorklogValue so that it can be accessed in the different phases of the field lifecycle.

isSet

boolean isSet()
Returns:
true if one of timeLogged(), newEstimate() or adjustmentAmount() is set.

isCreateIssue

boolean isCreateIssue()
Returns:
true if we are logging work as we are creating an issue; false otherwise

isEditIssue

boolean isEditIssue()
Returns:
true if we are logging work as we are editing an issue (on the Edit Screen); false otherwise


Copyright © 2002-2014 Atlassian. All Rights Reserved.