Interface UsersCustomField
- All Superinterfaces:
ICustomField
- All Known Implementing Classes:
UsersCustomFieldImpl
-
Method Summary
Modifier and TypeMethodDescriptiondefault CustomFieldType
getType()
Returns the type of this custom field.getValue()
Returns the value of this custom field.boolean
Whether the entire workspace can show up in the field response.boolean
Whether teams may show up in the field response.boolean
Whether this allows multiple values.boolean
Whether guests may show up in this field.Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.ICustomField
getClickUp4j, getId, getName, getTimeCreated, isRequired
-
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 interfaceICustomField
- Returns:
- the value of this custom field
-
isSingleUser
boolean isSingleUser()Whether this allows multiple values. If true, the value will be a single user.
In the client, this is referred to as "Select multiple users," and this is actually inverted.- Returns:
- Whether this allows multiple values.
-
shouldIncludeGuests
boolean shouldIncludeGuests()Whether guests may show up in this field.
Guests are notMembers
of the workspace, but may have rights in the list or task.- Returns:
- Whether guests may show up in this field.
-
includeTeams
boolean includeTeams()Whether teams may show up in the field response. If this is true,getValue()
may break.- Returns:
- Whether teams may show up in the field response.
-
includeEntireWorkspace
boolean includeEntireWorkspace()Whether the entire workspace can show up in the field response. Normally, only members of the list this task is a part of can be here.- Returns:
- Whether the entire workspace can show up in the field response.
-
getType
Description copied from interface:ICustomField
Returns the type of this custom field. This will be one ofCustomFieldType
.- Specified by:
getType
in interfaceICustomField
- Returns:
- the type of this custom field
-