AOT-Technologies / forms-flow-ai

formsflow.ai is an open source forms-workflow-analytics solution framework.
https://formsflow.ai/
329 stars 183 forks source link

Added Form Id in Task Filter #1983

Closed shuhaib-aot closed 3 months ago

shuhaib-aot commented 3 months ago

Issue Tracking

JIRA: Issue Type: BUG/ FEATURE

Changes

If a form is selected while creating or editing a task filter, the form ID will also be included in the task filter. Subsequently, when the filter is used to list tasks, they will be listed against the associated form ID by default.

Added this condition

if (slectedFormid is there) {
    data.properties.formId = selectedForm;
    data.criteria.processVariables = [{name: "formId", operator: "eq", value: selectedForm}];
  }