Unable to create task

I have created a form name covidform and on task.js i have written some code for that code to show but i am unable to see that task for person anywhere in my app. The code on tasks.js as follows:

module.exports = [{ name: 'covidTest', title: 'contact.type.person', icon: 'icon-healthcare', appliesTo: 'contacts', appliesToType: ['person'], actions: [{ form: 'covidform' }], events: [{ start: 7, days: 7, end: 0, }], }];

Unless I am missing something, with this configuration I would expect a task to be displayed for each person that has been created in the last 7 days. The events.days value is based on the contact’s creation date when no dueDate is specified. Is this your desired behavior? If you create a new person, do you see a task generated for that person?

I just want to know more about the task and tried to create simple task for that and I have created a new person to check the task but still there is no task generated for that person .

Hi @durga.tukilogic ,

I am assuming you are working on your local instance and have already uploaded the task using the commands something like below:

cht --url=https://<username>:<password>@localhost --accept-self-signed-certs


cht --url=https://<username>:<password>@localhost --accept-self-signed-certs compile-app-settings upload-app-settings

Are you getting any error messages? If not, could you please try testing task using harness methods as described in documentation? Please let us know how it goes.

1 Like