Package pw.chew.clickup4j.api.entities
Interface Target
- All Known Implementing Classes:
TargetImpl
public interface Target
Goal Targets
In ClickUp, goals can have targets (internally known askey results).
This helps track the overall progress of a goal.-
Method Summary
Modifier and TypeMethodDescription@NotNull ClickUp4jReturns thisClickUp4jinstance.@NotNull StringReturns the ID of theUserwho created the target.intReturns the current number of steps.@NotNull OffsetDateTimeReturns the date and time when the target was created.@NotNull GoalgetGoal()TheGoalthis target belongs to.@NotNull UUIDgetId()The unique identifier of the target.@NotNull TimelineEntryReturns the most recentactionthat was performed on the target.@NotNull StringgetName()Returns the name of the target.@Nullable UsergetOwner()Returns the owner of the target.floatReturns the current percentage of completion.intThe number of steps to complete.intThe number of steps to start with.@NotNull StringgetType()Returns the type of the target.@NotNull StringgetUnit()Returns the unit of measurement for a step.booleanReturns if this target is completed.
-
Method Details
-
getId
The unique identifier of the target.- Returns:
- never-null UUID of the target
-
getGoal
TheGoalthis target belongs to.- Returns:
- never-null
Goalthis target belongs to
-
getName
Returns the name of the target.- Returns:
- never-null name of the target
-
getCreatorId
Returns the ID of theUserwho created the target.- Returns:
- never-null ID of the
Userwho created the target
-
getOwner
Returns the owner of the target.- Returns:
- nullable
Userowner of the target
-
getType
Returns the type of the target.- Returns:
- never-null type of the target
-
getDateCreated
Returns the date and time when the target was created.- Returns:
- never-null date and time when the target was created
-
getStepsStart
int getStepsStart()The number of steps to start with.- Returns:
- number of steps to start with
-
getStepsEnd
int getStepsEnd()The number of steps to complete.- Returns:
- number of steps to complete
-
getCurrentStep
int getCurrentStep()Returns the current number of steps.- Returns:
- current number of steps
-
getUnit
Returns the unit of measurement for a step.- Returns:
- never-null unit of measurement for a step
-
getPercentCompleted
float getPercentCompleted()Returns the current percentage of completion.- Returns:
- current percentage of completion
-
isCompleted
boolean isCompleted()Returns if this target is completed.- Returns:
- true if this target is completed, false otherwise
-
getLastAction
Returns the most recentactionthat was performed on the target.- Returns:
- never-null
TimelineEntrymost recent action performed on the target
-
getClickUp4j
Returns thisClickUp4jinstance.- Returns:
- never-null ClickUp4j instance.
-