Skip to content

fix(FOUR-33230): Tasks marked as Priority are listed on end of the list - #9067

Open
rodriquelca wants to merge 1 commit into
developfrom
bugfix/FOUR-33230
Open

rodriquelca wants to merge 1 commit into
developfrom
bugfix/FOUR-33230

Conversation

@rodriquelca

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

Tasks list sends order_by=ID on load, but the API only accepts id (lowercase). Default sort may not apply.

Open /tasks
Check Network → /api/1.0/tasks → order_by=ID

Solution

  • Change default orderBy and sortField from "ID" to "id" in:

TasksList.vue
MobileTasks.vue

proprity.mov

How to Test

  1. Open Tasks
  2. Confirm request uses order_by=id&order_direction=DESC
  3. Verify tasks sort by ID descending
  4. Repeat on mobile view

Related Tickets & Packages

  • Link to any related FOUR tickets, PRDs, or packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

@cursor

cursor Bot commented Sep 18, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Two-line default string changes in task list components with no auth or data-model impact.

Overview
Fixes incorrect default sorting on the Tasks list (including priority ordering) by aligning the initial API sort field with what the backend accepts.

TasksList.vue and MobileTasks.vue now default orderBy and sortOrder[0].sortField from "ID" to "id", so the first /api/1.0/tasks request sends order_by=id&order_direction=DESC instead of an invalid order_by=ID. The UI column label still uses field: "ID"; only the query parameter casing changes.

Reviewed by Cursor Bugbot for commit cfbb51c. Bugbot is set up for automated code reviews on this repo. Configure here.

@decisions-sonarqube

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants