How to get the assigned user of a Camunda User Task in the End execution listener?

Is it possible to get the assigned user of a Camunda User Task in the End execution listener handler? I know that with v8.8 we will get task lister with Assigning event but how to workaround this with v8.6 to avoid high migration costs?

Hi @Adam_Boczek - good question! This is one feature I haven’t spent much time using, but I would start by logging all the variables available in the listener:

JobWorker worker = zeebeClient.newWorker()
        .jobType("my_test_listener") // Job type as defined in the BPMN model for start EL
        .handler(((client, job) -> { // Custom job handler
            // Log the start of the element processing
            LOGGER.info("Element with id:'{}' started with variables: {}", job.getElementId(), job.getVariables());
        });