cancel
Showing results for 
Search instead for 
Did you mean: 

delegate task to group using rest API

advisor_team
Champ in-the-making
Champ in-the-making
Hi,

i am using Activiti rest API in my project. here is provision in rest API to delegate task to user but i want to delegate task to group. how can i do this?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Delegating a task to a group is not called "delegating". You need to add an identity-link to the task and set the assignee to nobody, in order to have the task be claimable by other users (show up in candidate-queries).

Adding an candidate group: 'POST runtime/tasks/{taskId}/identitylinks' with body


{
  "groupId" : "sales",
  "type" : "candidate",
}

advisor_team
Champ in-the-making
Champ in-the-making
i have tried to POST to 'runtime/tasks/{taskId}/identitylinks' but its giving me below error

{
errorMessage: "The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method"
statusCode: 415
}

frederikherema1
Star Contributor
Star Contributor
What body did you supply to the POST? (and what content-type?)