Retrieves the number of tasks for each candidate group.

Method

GET /task/report/candidate-group-count

Result

A JSON array of task counts grouped by candidate groups.Each object has the following properties:

Name Value Description
groupName String The name of the candidate group. If there are tasks without a group name, the value will be null
taskCount Number The number of tasks which have the group name as candidate group.

Response Codes

Code Media type Description
200 application/json Request successful.
200 application/csv or text/csv Request successful. In case of an expected application/csv or text/csv response to retrieve the result as a csv file.
400 application/json Returned if some of the query parameters are invalid or mandatory parameters are not supplied. See the Introduction for the error response format.
403 application/json If the authenticated user is unauthorized to read the history. See the Introduction for the error response format.

Example

Request

GET /task/report/candidate-group-count with media type application/json

Response

  1. [
  2. {
  3. "groupName": null,
  4. "taskCount": 1
  5. },
  6. {
  7. "groupName": "aGroupName",
  8. "taskCount": 2
  9. },
  10. {
  11. "groupName": "anotherGroupName",
  12. "taskCount": 3
  13. },
  14. ]

原文: https://docs.camunda.org/manual/7.9/reference/rest/task/report/get-candidate-group-count/