As I didn’t get a response from any dev saying this was a known issue I went ahead and created it as a JIRA issue to investigate further: https://jira.dhis2.org/browse/DHIS2-7111
sorry for the late reply. By default, we try to avoid including extra data in our tracker payloads (It can get huge if you want everything). So by default, we don’t include, for example, enrollments. You can however add the following parameter to your url to include them:
?fields=all (Includes all data)
?fields=enrollments
Thanks @Stian. I discussed this in the JIRA issue with Gintare.
I can understand not fully listing the enrollments for performance, but I think the confusing part is that the enrollments field is returned as an empty array at the moment, implying it has none. I think the better option would be either not returning the field at all or returning it only with the enrollment’s UID.