Do we have any known issues in assign action in program rules for updating tracker attributes with data element values from stage? This is for an LMIS usecase
Requirement: We will receive medicine stock from donors and will enrol the details in tracker. There is one enrolment tracker attribute called Remaining Quantity. During initial enrolment it will be same as Total Quantity.
It is set up to always assign a value to the attribute and the value is assigned, but only when the program stage is not specified in the program rule.
If the program Stage is specified, the value does not get assigned to the attribute.
This leads me to a conclusion that the assignment of a value to an attribute can only happen during enrollment.
So at the moment, you cannot change or assign TEA data values with program rules when you enter data in program stages.
Here is some further information on that:
“The problem with this is that the assignments to tracked entity attributes will be triggered when you are in the registration form, or if you open the edit profile widget - but generally not when you enter data in program stages.”
I have talked to the devs and since this is a feature, not a bug, I have created the following issue: [DHIS2-11025] - Jira - follow that issue for updates.