How to identify which task is in progress

Hey there, I’m checking on CRM tasks. In the Task Status, I’m getting NOT_STARTED and Completed Tasks, but how to identify which tasks are in progress?

Regards,

@teja21

Hey, @teja21 :waving_hand: It looks like you’ll need to gather these specific tasks via the API. You can either make a request to the Tasks API enpoint for all tasks and then parse out the “IN_PROGRESS” Tasks on your end. Or you can make a request to the Search API and utilize the `EQ` filter to only return tasks with that status. The in-app filter only offers the two statues you noted in your post.

Examples:

Task API — List GET /crm/v3/objects/tasks

Request

curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/objects/tasks?limit=100&properties=hs_task_status&archived=false' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

Search API

POST https://api.hubapi.com/crm/v3/objects/tasks/search 

Request body

{
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "hs_task_status",
 "operator": "EQ",
 "value": "IN_PROGRESS"
 }
 ]
 }
 ]
}

Please let me know if you have any additional questions! — Jaycee

HI @teja21

You can get the status of the task with this property hs_task_status.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!