Class AutomaticProgressCustomFieldImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
pw.chew.clickup4j.internal.entities.customfields.AutomaticProgressCustomFieldImpl
- All Implemented Interfaces:
AutomaticProgressCustomField
,ICustomField
public class AutomaticProgressCustomFieldImpl
extends CustomFieldImpl
implements AutomaticProgressCustomField
-
Nested Class Summary
Nested classes/interfaces inherited from interface pw.chew.clickup4j.api.entities.customfields.AutomaticProgressCustomField
AutomaticProgressCustomField.CompleteOn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value to return when there is nothing being tracked.getValue()
Returns the value of this custom field.boolean
boolean
boolean
boolean
boolean
Methods inherited from class pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
getClickUp4j, getId, getName, getTimeCreated, getType, isRequired
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.AutomaticProgressCustomField
getType
Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.ICustomField
getClickUp4j, getId, getName, getTimeCreated, isRequired
-
Constructor Details
-
AutomaticProgressCustomFieldImpl
-
-
Method Details
-
getValue
Description copied from interface:ICustomField
Returns the value of this custom field.It's highly recommended to cast this value to the appropriate type, because it returns more appropriate data. For example, if the custom field is of type
CustomFieldType.TEXT
, you can cast the value toTextCustomField
, this class can be found usingCustomFieldType.getAssociatedClass()
.This will be null under the following circumstances:
- No value is specified.
- The task response did not contain a
value
. Notably when an individual task is retrieved.
- Specified by:
getValue
in interfaceAutomaticProgressCustomField
- Specified by:
getValue
in interfaceICustomField
- Overrides:
getValue
in classCustomFieldImpl
- Returns:
- the value of this custom field
-
isSubTaskTrackingEnabled
public boolean isSubTaskTrackingEnabled()- Specified by:
isSubTaskTrackingEnabled
in interfaceAutomaticProgressCustomField
-
isChecklistTrackingEnabled
public boolean isChecklistTrackingEnabled()- Specified by:
isChecklistTrackingEnabled
in interfaceAutomaticProgressCustomField
-
isArchivedSubTaskTrackingEnabled
public boolean isArchivedSubTaskTrackingEnabled()- Specified by:
isArchivedSubTaskTrackingEnabled
in interfaceAutomaticProgressCustomField
-
isAssignedCommentTrackingEnabled
public boolean isAssignedCommentTrackingEnabled()- Specified by:
isAssignedCommentTrackingEnabled
in interfaceAutomaticProgressCustomField
-
getCompleteOn
Description copied from interface:AutomaticProgressCustomField
Returns the value to return when there is nothing being tracked. This returns aAutomaticProgressCustomField.CompleteOn
enum value. You can useAutomaticProgressCustomField.CompleteOn.getAsString()
to see what the value is in the UI, or useAutomaticProgressCustomField.CompleteOn.getAsInt()
to get the value as an integer.- Specified by:
getCompleteOn
in interfaceAutomaticProgressCustomField
- Returns:
- the value to return when there is nothing being tracked
-
isSubtaskRollupEnabled
public boolean isSubtaskRollupEnabled()- Specified by:
isSubtaskRollupEnabled
in interfaceAutomaticProgressCustomField
-