'Camunda API Assign and Count Task Count By Candidate Group
I am creating a workflow in Camunda. I'd like to:
- assign tasks to a group, other than a specific user
- count the number of tasks per group.
I did not find any guideline from Camunda docs talking about assigning tasks to a group, so I tried Add Identity Link
POST /task/{{taskid}}/identity-links
Request body:
{"groupId": "teamA", "type": "candidate"}
However, when I try Get Task Count By Candidate Group
GET /task/report/candidate-group-count
There was no task assigned to TeamA from the Response body, in contrast, all my desired tasks fell into the group null.
[
{
"groupName": "accounting",
"taskCount": 4
},
{
"groupName": "sales",
"taskCount": 2
},
{
"groupName": null,
"taskCount": 6
}
]
Any advice on how to fix this?
UPDATE 2022-02-11
I think the issue might be caused by the version of camunda bpmn platform. After I downgrade the version from 7.17.0-alpha4 to 7.16, the issue is resolved.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
