Custom Fields
Custom fields allow users to add custom properties to tasks via projects and project templates. Custom fields can be of different types, such as text, number, date, and more. Custom fields are created at the workspace level, activated for a project and then used at the task level. The field values can then be set and retrieved in the task details.
Custom fields are a great way to store additional information in tasks, such as an external Id, which makes it a lot easier to build API integrations with other tools.
Types of custom fields
The following types are available for custom fields:
Creating a custom field
To create a custom field, you need to send a POST request to the custom field definitions endpoint:
The response contains the customFieldDefinitionId
which is required for the following requests. See the API reference for more custom field types.
Linking a custom field to a project
Next, the custom field must be linked to a project before a value can be set for a task. To do so, you need to send a POST request to the project custom fields endpoint:
Custom fields can be linked to projects and project templates. See the API reference for more information.
Setting a custom field value for a task
Finally, you can set a value for the custom field for a task. To do so, you need to send a POST request to the task’s /setCustomFields
endpoint:
See the API reference for more information.
Getting the custom field values of a task
To get the values of custom fields of a task, you simply need to fetch the task. The custom field values are included in the response:
Learn more about custom fields.