Skip to content

Add server-side project filtering to tickets API #187

@BenGWeeks

Description

@BenGWeeks

Background

The project detail page (src/app/projects/[id]/page.tsx) calls the tickets API with a project query parameter, but the API endpoint doesn't currently process this parameter. Instead, all tickets are fetched from the organization and filtered client-side.

Current Behavior

  • Project page: GET /api/devops/tickets?project={projectId}
  • API ignores the project parameter and returns all tickets
  • Client filters tickets by project after receiving all data

Proposed Enhancement

For better performance with large organizations:

  1. Update src/app/api/devops/tickets/route.ts to handle the project query parameter
  2. Add WIQL filtering by project when parameter is provided
  3. Reduce data transfer and client-side processing

Priority

Low - current MVP approach works fine for small/medium organizations. Only becomes an issue with large ticket volumes.

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions