Get task items statistics for an entity
GET
/v1/task-management/stats
const url = 'https://api.varman.io/v1/task-management/stats?entityId=vnd_abc123def456&entityType=vendor';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.varman.io/v1/task-management/stats?entityId=vnd_abc123def456&entityType=vendor' \ --header 'X-API-Key: <X-API-Key>'Get task items statistics for an entity in Varman. Manage task items and attachments linked to operational entities such as risks and vendors.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”entityId
required
string
Example
vnd_abc123def456ID of the entity to get task items stats for
entityType
required
string
Type of entity
Responses
Section titled “Responses”Task items statistics retrieved successfully
Media typeapplication/json
object
total
number
byStatus
object
todo
number
in_progress
number
in_review
number
done
number
canceled
number
Example generated
{ "total": 1, "byStatus": { "todo": 1, "in_progress": 1, "in_review": 1, "done": 1, "canceled": 1 }}