Skip to content

Conversation

@gproly
Copy link
Contributor

@gproly gproly commented Dec 24, 2025

… user list

Description

When Assignment type=process variable and variable Name (groups) is set with a correct value then when reassign button is pressed, only the process manager is listed.

Related tickets

https://processmaker.atlassian.net/browse/FOUR-28520


Note

Adds process-variable-based assignee resolution and updates the reassign flow to use it.

  • Backend: UserController@getUsersTaskCount now handles assignmentRule='process_variable' using new ProcessRequestToken::getUsersFromProcessVariable(form_data) to derive assignees from assignedUsers and assignedGroups (including recursive group members via process->getConsolidatedUsers).
  • Frontend: Centralizes reassign user fetching in resources/js/tasks/api/index.js using POST /users_task_count with form_data, removes internal vars, and excludes the current assignee. reassignMixin, TasksPreview.vue, and TaskPreviewAssignment.vue pass formData/currentTaskUserId and load options via the new API; reassignment supports optional comments.
  • Tests: Adds comprehensive unit tests for getUsersFromProcessVariable (users, groups, combined, empty, invalid inputs, ID filtering).

Written by Cursor Bugbot for commit 7ec8046. This will update automatically on new commits. Configure here.

ci:deploy

… user list

 ## Description
When Assignment type=process variable and variable Name (groups) is set with a correct value then when reassign button is pressed, only the process manager is listed.
 ## Related tickets
https://processmaker.atlassian.net/browse/FOUR-28520
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

gproly added 2 commits January 6, 2026 17:41
… to extract user IDs from form data (assignedUsers/assignedGroups variables).

Uses Process::getConsolidatedUsers() to get users from groups recursively.
Validates array inputs and filters invalid IDs. Includes PHPUnit tests.
@eiresendez eiresendez self-requested a review January 7, 2026 14:30
@vladyrichter
Copy link

QA server K8S was successfully deployed https://ci-c42676abcc.engk8s.processmaker.net

@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

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

See analysis details on SonarQube

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.

5 participants