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
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| accountId | String | Yes | ID of the user whose perspective is queried. | "1238779494193071" |
Response parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| success | Boolean | Whether the request was successful. | true |
| data | Array | Task statistics by task association type. | N/A |
| accountType | String | User association type for the task:
| "submitter" |
| cnt | Integer | Number of tasks. | 5 |
| errorCode | String | Error code. | N/A |
| message | String | Error message. | N/A |
Successful response example
{
"success": true,
"requestId": "Op6b0PXR-BHGBdNLnCBEe4ZEdGCh1DTP",
"data": [{
"accountType": "submitter",
"cnt": 143
}, {
"accountType": "toApprove",
"cnt": 8
}, {
"accountType": "toExecute",
"cnt": 8
}]
}