Skip to content

Cannot filter task report by assignee and status at the same time #302

@JackTaylor1114

Description

@JackTaylor1114

Describe the bug
When configuring the task report macro to filter by assignee and status at the same time, only the status filter is respected in the result.

Steps to reproduce
Steps to reproduce the problematic behavior:

  1. Add macro {{task-report assignees="XWiki.SampleUser"/}} to a document
  2. Add macro {{task-report assignees="XWiki.SampleUser" status="ToDo"/}} to a document
  3. Check requests in browser: query string for first table contains filters.assignee=:XWiki.SampleUser, the query string for second table contains filters.status=:ToDo but not the filter by assignee. Second table shows too many results.

Expected behavior
The live data table should respect all filters.

Actual behavior
Filter by assignee is ignored in the request and too many results are returned.

Environment (please complete the following information):

  • Browser: Chrome
  • XWiki version: 17.6.0
  • App version: 3.10.0

Additional context
Probably a bug with the way the filters are passed to the live data table. In TaskReportMacro.xml the filters for reporter and status are set via filters= parameter for livedata, the filter for assignee is provided via $livedataCfg and is not respected.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions