SearchPiecesTool
Search pieces of ONE project by type, state ("open" = not completed/approved), assignee, author and text; compact rows, counts_by_state over the whole filtered set. Use for filtered questions such as state, assignee, author or text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based), defaults to 1 | |
| size | No | Page size (1-50), defaults to 20 | |
| sort | No | updated_at_desc (default), created_at_desc or priority | |
| query | No | Text match on name and description, same as the web search | |
| states | No | task_state codes (new, inprogress, completed, approved, blocked, ...) or "open" = everything except completed and approved | |
| piece_types | No | Task, Story, Epic, Recurent | |
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| created_since | No | ISO 8601 | |
| updated_since | No | ISO 8601 | |
| author_user_id | No | User id of the author | |
| task_type_codes | No | e.g. ["bug","task"] | |
| assigned_user_id | No | User id of the assignee; 0 = unassigned | |
| parent_relative_id | No | Only descendants (whole subtree) of this Epic/Story of the same project | |
| include_description | No | Include descriptions, defaults to false | |
| project_relative_id | Yes | Relative ID of the project to search in (required, there is no account-wide search) |