Issue Completing Task via API

Hello Camunda Community,
I’m encountering an issue when trying to complete a task via the Camunda REST API.
What I Am Trying to Do:

  • I want to complete a user task associated with a running process instance.
  • The task has an execution listener (end script) attached, but there’s a syntax error in the script, which prevents the task from being completed as usual.
  • I need to skip the execution listeners (due to the error) and proceed with completing the task.

Hi @stymm-1

If you want to skip the execution listeners then, you need to use the process instance modification API with skipCustomListeners set to true

{{baseUrl}}/modification/execute

{
    "instructions": [
        {
            "type": "startAfterActivity",
            "activityId": "[USER_TASK_ID]"
        }
    ],
    "processInstanceIds": [
        "XXXXX"
    ],
    "skipCustomListeners": true
}