Find Task Type using the API
G
Gil Peeters
I can't seem to find a way to find the Task Type for a Task.
When I use the Get Task API call for a card (https://api.clickup.com/api/v2/task/{task_id}) It does not return the type of the task. Or at least I can not find it!.
We use Custom Task Types, and I can retrieve the Task Type using the Get Custom Task Types (https://api.clickup.com/api/v2/team/{team_id}/custom_item) API, which is great, so I can map the Task Type to a correct display value.. If I could find the Task Type of a Task!?
Any ideas on where I can get the Task Type for a given Task?
Log In
John
Hi Gil Peeters. The task object includes a "custom_item_id" which is the ID of the custom task type. You can use that along with the Get Custom Task Types endpoint to translate that ID into the friendly name.
G
Gil Peeters
John, Oh, of course.. I see it now..
Not a particularly well named field, now is is?!
Cheers
G./