Details
-
Task
-
Resolution: Won't Do
-
P2: Important
-
None
-
None
-
None
Description
The endpoint "TaskWorkitems" should allow filtering in the request with the following fields:
{ id: str # REQUIRED (already exists in API) task_action: str/list[str] [Build, Test, Provision] state: str/list[str] [Running, Done, Cancelled, Failed] target_os: str/list[str] target_os_version: str/list[str] }
These parameters should be used to filter results to return only work items matching all supplied filters. All filters should be optional.
Example request:
GET /taskWorkItems { id: "1652939184" task_action: ["Build", "Test"] state: ["Done", "Failed"] target_os: "Linux" target_os_version: "INTEGRITY" }
This request would return work items which are Build or Test items, of which only the ones which are in a state of Done or Failed, of which have the target OS of Linux, specifically for the INTEGRITY target os version.