Skip to content

Conversation

@eiresendez
Copy link
Contributor

@eiresendez eiresendez commented Oct 30, 2025

Issue

When config('smart-extract.hitl_enabled') is true, the /api/1.0/tasks endpoint still applies the nonSystem() scope, so the HITL task “Manual Document Review” never reaches the /tasks UI. Once visible, its case_number remains null, so the task list renders “undefined”. Reproduce by enabling HITL, assigning the task to a user and loading /tasks with non_system=true.

Solution

  • Adjusted excludeNonVisibleTasks to keep filtering system tasks while explicitly whitelisting the “Manual Document Review” HITL task when the HITL feature flag is on.
  • Augmented the Task API resource to inject the parent request’s case_number for that HITL task so the UI receives a complete payload.
  • Simplified the Vue task list renderer now that the backend provides the correct case number.

How to Test

  1. Set smart-extract.hitl_enabled to true and confirm a “Manual Document Review” task is assigned to the test user.
  2. Call /api/1.0/tasks?include=process,processRequest,processRequest.user,user&non_system=true and verify the task appears with a populated case_number.
  3. Visit /tasks and confirm the row shows the HITL task with the correct case number, while other system tasks remain hidden.

Related Tickets & Packages

@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@sanjacornelius sanjacornelius merged commit 8c69baf into epic/FOUR-26611 Oct 30, 2025
9 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants