Task is already assigned

Hi All,

I got “Task is already assigned” error when I use the Tasklist assign API, however, I send “allowOverrideAssignment”: true, knowing that I use C8 V 8.3.3 Self managed

@Niall @christian-konrad @jonathan.lukas @nathan.loding

Thanks,
Yasmeen

Hi @yasmeenhesham
What is the current state of the task?
Can you share an example of the call you’re using?

Regards,
Alex

Hi @Alex_Voloshyn

Please, find below the request details
{
“assignee”: “Admin2”,
“allowOverrideAssignment”: true
}
taskId: 2251799813685669

The task details
{
“id”: “2251799813685669”,
“name”: “Assign User”,
“taskDefinitionId”: “assignUser”,
“processName”: “transactions”,
“creationDate”: “2024-02-29T17:27:46.021+0200”,
“completionDate”: null,
“assignee”: “demo”,
“taskState”: “CREATED”,
“sortValues”: [
“1709220466021”,
“2251799813685669”
],
“isFirst”: false,
“formKey”: null,
“processDefinitionKey”: “2251799813685443”,
“processInstanceKey”: “2251799813685652”,
“tenantId”: “”,
“dueDate”: null,
“followUpDate”: null,
“candidateGroups”: null,
“candidateUsers”: null
}

Hi @yasmeenhesham , sounds like you spotted a bug, thank you! We will confirm and try to fix.

Hi @yasmeenhesham, are you using a session cookie or OAuth for API auth?
The override is not allowed on session cookies since it runs on permissions of a single task user (who’s not allowed to override other user’s tasks).
You need to use OAuth to override assignments (which runs on a M2M token)

In case it’s still not working, let me know!

Best,
Christian

Hi @christian-konrad ,

I use session cookies, as I am using the self managed manual installation. Is there any other way to use the APIs in the manual installation?

Also, when I tried to use the tasklist client using the basic authentication, I got the same error.

Does the tasklist client use the session cookies?

Thanks,
Yasmeen

Hi @yasmeenhesham ,

it’s documented here: Authentication | Camunda 8 Docs

(Please ignore the GraphQL reference there, it’s outdated)

Also, when I tried to use the tasklist client using the basic authentication, I got the same error.

With client, to you mean the Tasklist UI or a client library?

Hi @christian-konrad

it’s documented here: Authentication | Camunda 8 Docs

Thanks, I will take a look into it.

With client, to you mean the Tasklist UI or a client library?

I mean the client library

Thanks,
Yasmeen

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.