Docs
Get Task Attributes
GET /taskAttributes
GET
/taskAttributesLists task attributes. With an event token: the attributes placed on the Event task type, in placement order, each with its placement's required and show-on-create-form flags; their ids key the values sent to ProjectManagement_AddTask and ProjectManagement_UpdateTask (needs event basic access, since every task form reads it); an archived attribute still placed there is listed with isArchived and is never required. With an organization token and no event token: the organization's whole task attribute library, each with the task types it is placed on; archived attributes are left out unless includeArchived is true.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| includeArchived | boolean | Optional |
Response
Type: GetTaskAttributesResponse[]
GetTaskAttributesResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null | |
| fieldClassId | uuid| null | |
| type | string| null | |
| options | GetTaskAttributesResponseOption[]| null | |
| availability | GetTaskAttributesResponseAvailabilityInfo | |
| isArchived | boolean | |
| isRequired | boolean| null | |
| showOnCreateForm | boolean| null | |
| sectionId | uuid| null | |
| index | integer| null | |
| placements | GetTaskAttributesResponsePlacementInfo[]| null |
GetTaskAttributesResponseOption
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| value | string| null | |
| isArchived | boolean | |
| color | string| null | |
| icon | string| null |
GetTaskAttributesResponseAvailabilityInfo
| Field | Type | Description |
|---|---|---|
| recordIds | uuid[]| null |
GetTaskAttributesResponsePlacementInfo
| Field | Type | Description |
|---|---|---|
| taskTypeKind | string| null | |
| placementId | uuid | |
| isRequired | boolean | |
| showOnCreateForm | boolean |