Task Name returns null from REST API

When querying the Task API we are seeing the Name property returned as null in some cases. We are calling the engine-rest/task endpoint with the following body:

{
    "taskVariables": [
        {
            "name": "eligible_users",
            "value": "%a28509%",
            "operator": "like"
        }
    ],
    "processVariables": [
        {
            "name": "order_lock_until",
            "value": "2019-07-25T21:29:10.002311",
            "operator": "lt"
        }
    ],
  
    "unassigned": true,
    "followUpBeforeOrNotExistent": "2019-07-25T21:29:10.002+0000"
}

The response contains many of the same Tasks, some with a Name, some with null.

`` {
“id”: “7132f81f-ae46-11e9-8b21-0242c0a84201”,
“name”: null,
“assignee”: null,
“created”: “2019-07-24T19:08:38.000+0000”,
“due”: null,
“followUp”: “2019-07-25T09:00:00.000+0000”,
“delegationState”: null,
“description”: null,
“executionId”: “7132f81c-ae46-11e9-8b21-0242c0a84201”,
“owner”: null,
“parentTaskId”: null,
“priority”: 0,
“processDefinitionId”: “Assignment:4:e661f1ad-af25-11e9-8b21-0242c0a84201”,
“processInstanceId”: “08e6c93b-ad67-11e9-8b21-0242c0a84201”,
“taskDefinitionKey”: “ManuallyAssignUnassigned”,
“caseExecutionId”: null,
“caseInstanceId”: null,
“caseDefinitionId”: null,
“suspended”: false,
“formKey”: “Order”,
“tenantId”: null
},
{
“id”: “955562f9-af0c-11e9-8b21-0242c0a84201”,
“name”: “Manually Assign Order – Unassigned”,
“assignee”: null,
“created”: “2019-07-25T18:46:59.000+0000”,
“due”: null,
“followUp”: null,
“delegationState”: null,
“description”: null,
“executionId”: “955562f6-af0c-11e9-8b21-0242c0a84201”,
“owner”: null,
“parentTaskId”: null,
“priority”: 50,
“processDefinitionId”: “Assignment:4:e661f1ad-af25-11e9-8b21-0242c0a84201”,
“processInstanceId”: “6333fb02-af0c-11e9-8b21-0242c0a84201”,
“taskDefinitionKey”: “ManuallyAssignUnassigned”,
“caseExecutionId”: null,
“caseInstanceId”: null,
“caseDefinitionId”: null,
“suspended”: false,
“formKey”: “Order”,
“tenantId”: null
},`

while modelling your bpmn did you configured the taskname?

Yes. Sorry I didn’t include that originally. All Tasks have a Name. The oddest thing is that some queried Tasks return the Name while some do not.