Hello Tracker devs,
Are backend program rules of action type “ASSIGN” supported in the (old) /api/events
endpoint?
Assumptions:
- Event program with two DEs
- a simple Program rule to copy from DE1 to DE2 – confirmed to work in Frontend / Capture app.
- Versions tested: 2.37.2 and 2.36.7.
- The
dhis.conf
property is turnedon
forsystem.program_rule.server_execution
as per DHIS2-10380 (and Tomcat restarted).
I noticed with exactly the same payload (except the property for eventDate is switched to occuredAt to conform to the new Tracker API) the value from DE1 gets assigned to DE2 in the new Tracker API endpoint via POST /api/tracker,
but not via POST /api/events
.
Is this expected?
There is no such mention in the documentation, so I’m wondering whether this is a bug or not.
A few related JIRA issues I found while looking what already exists:
Thank you!