Description
Environment (Required on creation):
Camunda Platform, any version.
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
After migrating a process instance to a new version of a process, the information obtained at Process > History > pickAnInstance > User Tasks is incomplete.
Steps to reproduce (Required on creation):
- Deploy SUPPORT-13237.bpmn.
- Start one or more instances
- Finish some of the user tasks
- Have a look information obtained at Process > History > pickAnInstance > User Tasks: image-2022-03-18-12-39-59-500.png.
- Change the workflow, e.g.: change the version to "2"
- Deploy the changed workflow
- Migrate all workflow instances to the new version.
- Have a look information obtained at Process > History > pickAnInstance > User Tasks: image-2022-03-18-12-45-31-408.png.
Observed Behavior (Required on creation):
Incomplete User Tasks history.
Expected behavior (Required on creation):
Complete User Tasks history.
Root Cause (Required on prioritization):
Cockpit's payload to the http://localhost:8080/camunda/api/engine/engine/default/history/task?firstResult=0&maxResults=50 REST API includes the processDefinitionId property, e.g.:
{ "processInstanceId":"b62083d2-a555-11ec-af41-000c29be88fd", "processDefinitionId":"process:3:6741580d-a6c0-11ec-96fe-000c29be88fd", "sorting":[{"sortBy":"startTime","sortOrder":"desc"}] }
Solution Ideas (Optional):
Do not include the processDefinitionId property in Cockpit's payload to the http://localhost:8080/camunda/api/engine/engine/default/history/task?firstResult=0&maxResults=50 REST API.