Skip to main content

Get Task Statistics

Use this API to retrieve task statistics for the current user.

Request URL: /openapi/v1/workflow/statistic

HTTP method: GET

Request parameters

ParameterTypeRequiredDescriptionExample
accountIdStringNoID of the user whose perspective is queried. If omitted, the current OpenAPI account is used."1238779494193071"

Response parameters

ParameterTypeDescriptionExample
successBooleanWhether the request was successful.true
requestIdStringOpenAPI request ID."<requestId>"
dataArrayTask statistics by task association type.N/A
accountTypeStringUser association type for the task:
  • submitter: Submitted by me
  • toApprove: Pending my approval
  • approved: Approved by me
  • toExecute: Pending my execution
  • executed: Executed by me
  • toHandle: Current handler
  • handled: Previous handler
  • related: Related user
  • coordinate: Coordinator
"submitter"
cntIntegerNumber of tasks.5
messageStringError message.N/A

Successful response example

{
"success": true,
"requestId": "Op6b0PXR-BHGBdNLnCBEe4ZEdGCh1DTP",
"data": [{
"accountType": "submitter",
"cnt": 143
}, {
"accountType": "toApprove",
"cnt": 8
}, {
"accountType": "toExecute",
"cnt": 8
}]
}