Is the task display, in the profile view, limited to household & person levels?

We’ve been able to create tasks easily for our household & household member. However, recently we identified the need to create a dwelling task (to help curb duplicate creation) but have been unable to get the task to display in the profile tasks card.

To test this we used the exact same basic task code for our dwelling and household. Below you can see the task showing as expected for the household:


We also added prinouts the provider.wireup.js file (as can be seen in the console) to print out the tasks queried by the rules-engine.service.ts.

Here you can see the dwelling level task block is empty:


Interestingly no provider.wireup.js prinout is present when viewing this hierarchy item.

Both tasks are, however, present in the task tab:


The prinouts once again present in the console.

Have I perhaps misconfigured something?

Our hierarchy is:
Indawo
~Dwelling
~~Household
~ ~Household member

Hi @Anro

We actually don’t load tasks for contacts that are not leaf places (that only have persons as children): cht-core/webapp/src/ts/services/tasks-for-contact.service.ts at bb0f16f544bcae8aa4afc07e4d62773271eedda7 · medic/cht-core · GitHub

This is expected behavior.